Support separate S3 serving endpoint (#91)
* Add s3 serving endpoint config. Fixes #90 * Move CDN endpoint generation to GenerateRemotePlaylist * Include HLS path * Add docs and config * Prefer sprintf to string concatenation * Use config method * gofmt
This commit is contained in:
@@ -110,6 +110,10 @@ You should expire old segments on your S3 bucket. [Here are some instructions o
|
||||
|
||||
* Ugh. CORS. [You will need to enable CORS on your bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors) so the web player can access the video.
|
||||
|
||||
### CDN
|
||||
|
||||
AWS (and other S3 compatible providers) offer a feature to change the HTTP host to support CDNs. You can configure Owncast to serve media files from this host by setting the `s3.servingEndpoint` config to your CDNed host.
|
||||
|
||||
|
||||
## [Wasabi cloud storage](https://wasabi.com/content-delivery/)
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ files:
|
||||
s3:
|
||||
enabled: false
|
||||
endpoint: https://s3.us-west-2.amazonaws.com
|
||||
servingEndpoint: https://yourcdn.example
|
||||
accessKey: ABC12342069
|
||||
secret: lolomgqwtf49583949
|
||||
region: us-west-2
|
||||
|
||||
Reference in New Issue
Block a user