二、访问控制(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
本文介绍了Nginx RTMP模块中的访问控制指令allow和deny,包括它们的语法、上下文及使用示例。通过这些指令可以实现精确的流媒体发布和播放地址控制。
1322

被折叠的 条评论
为什么被折叠?



