Skip to content

NGINX RTMP Auth scripts based on PHP

License

Notifications You must be signed in to change notification settings

Sora012/rtmp-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rtmp-auth

Custom NGINX RTMP module auth scripts

Basic Prerequisites

Requires MySQL/MariaDB, PHP, NGINX RTMP/FLV Module

Basic Setup

  1. Setup a webserver to listen on 127.0.0.1
  2. Edit NGINX Configuration RTMP section to contain:

on_publish http://127.0.0.1/auth.php;

on_publish_done http://127.0.0.1/deauth.php;

on_play http://127.0.0.1/play.php;

  1. Import MySQL/MariaDB SQL file
  2. Edit the PHP Scripts to point to the proper Database information
  3. Edit the SQL Database to contain information for a valid key(s) & username(s).

OBS

{IP} is your servers IP/Domain

{app} is the application in the RTMP section

{Key} is the live stream key from the MySQL Database

OBS Stream Settings Server: rtmp://{IP}/{app} Stream Key: {Key}

Notes

Don't check "Use Authenication"

The database should use all lower-case information and keys

About

NGINX RTMP Auth scripts based on PHP

Topics

Resources

License

Stars

Watchers

Forks

Languages