How does it work?
Prerequisites
- A functioning nginx setup, with the RTMP module.
- A stub web page, hello world, something of the sort.
- A port open on your web server for RTMP (default: 1935)
Moving parts
- Add a block like this to your nginx.conf
- Configure a sites-available file like this
- Configure OBS to stream to rtmp://your_host/live with a stream key of 'stream'
- View source on the main page. Steal the whole thing if you want.
- ???
- Profit
You can fill in a lot of the gaps with this guide from Digital Ocean if something isn't working.