From bb725cc3802b42992666e18d0758459e4332cdd7 Mon Sep 17 00:00:00 2001 From: Mistivia Date: Fri, 19 Dec 2025 23:13:09 +0800 Subject: Enhance README with CORS and AWS S3 instructions Updated instructions for CORS settings and added AWS S3 bucket policy details. --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c53c75..5a0ac7a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,39 @@ region=auto key=your_live_key ``` -In the dashboard of your object storage provider, add the domain name of your web HLS player to CORS setting. If you don't know how to setup a web HLS player, just add `https://mistivia.github.io`. +In the dashboard of your object storage provider, enable public read, and add the domain name of your web HLS player to CORS setting. If you don't know how to setup a web HLS player, just add `https://mistivia.github.io`. + +For AWS S3, Edit bucket setting, set "Permissions" -> "Bucket Policy" to: + + { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "PublicReadOnly", + "Effect": "Allow", + "Principal": "*", + "Action": "s3:GetObject", + "Resource": "arn:aws:s3:::nebulive/*" + } + ] + } + +Then set "Permissions" -> "Cross-origin resource sharing (CORS)" to: + + [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET" + ], + "AllowedOrigins": [ + "https://your.hls.player.com" + ], + "ExposeHeaders": [] + } + ] Start EZLive: -- cgit v1.0