檔案 /usr/local/nginx/conf/nginx.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#在 http 模組下 location / { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny ip list deny all; } location /obs-remote { root html; index index.html index.htm; # allowed ip list allow 192.168.0.0/24; #deny ip list deny all; } #在 rtmp 模組下 application live { live on; record off; # allow publish streaming allow publish 192.168.0.0/24; # deny publish streaming deny publish all; # allow play allow play 192.168.0.0/24; # deny play deny play all; |
修改後,執行 service nginx reload
重 load 設定檔
這邊都是設定 192.168.0.0/24 的 Lan 內才能觀看