Closure Compiler as Simple HTTP Server
Moved to https://github.com/glensc/closure-compiler-httpserver
Closure Compiler as Simple HTTP Server
Moved to https://github.com/glensc/closure-compiler-httpserver
Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.
loosely based on https://gist.github.com/bnerd/2011232
// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory
When setting up a Mastodon instance I had a very hard time working out the required S3 permissions. | |
Wasted a day on it. None of the tutorials or even the official documentation gave me this information. | |
In the end I gave up and just gave it blanket access to all permissions for the Mastodon bucket (S3Administrator). | |
But this didn't set well with me - I don't like granting unnecessary permissions, especially not when S3 has about 100 of them. | |
If the server were to become compromised or the keys were to otherwise fall into the wrong hands I'd want a potentially malicious actor to have as limited permissions as possible. | |
Anyway I finally worked out the permissions required to for Mastodon to function with an S3 bucket as its media storage. | |
See below for the IAM policy. |