-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different S3 serving endpoint (e.g. CDN support) #90
Comments
AWS also offers a feature to change the host to get a CDN'ized version of it, not to mention just having control over where the video segments are in general would be useful across the board. So as it stands the So in I think? :) If you want to take a stab at this, go for it! Otherwise I can probably get to it this week. |
Just noticed you already looked at it! So the only thought I had that's different is instead of rewriting the URL in |
Yup, I was just mucking around to see if I could get something working. I'll update the branch and open a PR |
* 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
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.35 to 14.14.36. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Use posix 'command' instead of 'which' in install.sh
DigitalOcean supports a built-in CDN when using their S3-compatible Spaces storage. After enabling, use of the CDN just requires changing the endpoint; e.g.:
It's also possible to configure a custom domain (using a subdomain you own, for example).
I can try to add a new configuration parameter to support this (something like
s3.servingHostname
), but wanted to get your thoughts before making the change.Simplest approach would be to just generate and return the custom URL within
s3Storage.Save
, but if you think there's value in pulling this up more generally, we could probably move it intomonitor.go
. This would potentially let other storage providers use the same param. I don't think this would be valuable for local serving, but maybe for other providers in the future? I dunno.The text was updated successfully, but these errors were encountered: