- original repo here
A Python script that allows you to authenticate RTMP publishers in nginx-rtmp-module.
- Build NGINX with nginx-rtmp-module and see the example conf for how to setup authentication with the script.
- Install dependencies:
pip3 install -r requirements.txt
- Edit config.ini with general settings, then edit authentication.json with your applications and stream names (also called stream keys)
- Run with
sudo python3 rtmpauth.py
(sudo not needed if you are using a port number over 1000)
[main]
bind_to_ip = 127.0.0.1 # IP address to bind to
bind_to_port = 88 # Port to bind to
authentication_file = authentication.json
log_to_file = auth.log # File to log to - basically an access.log