unjust / microradio_server

work for the streaming service and site
4 stars 0 forks source link

Incorporate stunnel to use as a service with facebook stream #9

Closed unjust closed 4 years ago

unjust commented 5 years ago

This fixes issue https://github.com/unjust/radio_molecula/issues/1

Facebook rtmps doesnt work with nginx-rtmp, so a fix was to create a stunnel service with docker.

Borrowed from this post https://dev.to/lax/rtmps-relay-with-stunnel-12d3 . I decided to save the stunnel confs in google storage that are in this branch rather than using command line to create them.

Not all the settings were supported from the blog so I modified the confs as the errors came up. foreground = yes was important to not have docker exit