AWS S3

AWS S3 is a good choice if you’re already using AWS for your server or are comfortable using AWS for other things. If you’re brand new to object storage and not using AWS already I’m not sure I’d recommend jumping into it just for Owncast. There are other options.

Here’s some example usage and pricing for AWS S3:

File expiration

You should expire old segments on your S3 bucket. Here are some instructions on how to do that.

  • Once an object expires you won’t be charged for storage, even if the object isn’t deleted immediately.
  • A one day object expiration lifecycle rule on objects is as low as you can go, so use that.

CORS

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 Serving Endpoint to your CDNed host. For testing try it without setting this value first to make sure things are working, and then add the additional configuration.