二、访问控制(Access)
1、allow
语法:allow [play|publish] address|subnet|all
上下文:rtmp, server , application
允许从指定地址或者所有地址做主播或播放,allow和deny指令按照出现的顺序来作检查。
Allow publishing/playing from addresses specified or from all addresses.
Allow/deny directives are checked in order of appearance.
allow publish 127.0.0.1;
deny publish all;
allow play 192.168.0.0/24;
deny play all;
deny publish all;
allow play 192.168.0.0/24;
deny play all;
2、deny
语法:deny [play|publish] address|subnet|all
上下文:rtmp, server , application
请参数allow的描述。
See allow for description.
参考:https://github.com/arut/nginx-rtmp-module/wiki/Directives