【nginx-rtmp】06、指令(Directives)之 访问控制(Access)

来源:互联网 发布:平顶山java培训班经验 编辑:程序博客网 时间:2024/06/06 05:22
二、访问控制(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;


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

原创粉丝点击