default 362 B

123456789101112131415161718192021222324
  1. server {
  2. listen 8999 default_server;
  3. listen [::]:8999 default_server;
  4. root /var/www/html;
  5. index index.html index.htm index.nginx-debian.html;
  6. server_name _;
  7. location / {
  8. try_files $uri $uri/ =404;
  9. }
  10. include /etc/nginx/rtmp-pwd.conf;
  11. location /recordings {
  12. autoindex on;
  13. }
  14. location ~ /recordings/.*\.flv$ {
  15. deny all;
  16. return 403;
  17. }
  18. }