How does it work?

Prerequisites

Moving parts

  1. Add a block like this to your nginx.conf
  2. Configure a sites-available file like this
  3. Configure OBS to stream to rtmp://your_host/live with a stream key of 'stream'
  4. View source on the main page. Steal the whole thing if you want.
  5. ???
  6. Profit

You can fill in a lot of the gaps with this guide from Digital Ocean if something isn't working.