How to set up your own private RTMP server using nginx

A somewhat advanced guide for Linux-based servers