config changes

master
Thomas Lynch 2 years ago
parent d1f9ebf8de
commit 920a4a3a38
No known key found for this signature in database
GPG Key ID: FBAB081F9B6E14B2
  1. 2
      nginx/rtmp.conf
  2. 9
      nginx/stream.conf
  3. 2
      nginx/www/stream/viewers.html

@ -5,7 +5,7 @@ rtmp {
deny all;
chunk_size 4096;
application live {
# sync 10ms;
sync 10ms;
# interleave on;
# wait_key on;
# wait_video on;

@ -9,8 +9,6 @@ server {
allow 172.16.0.0/16;
deny all;
#add_header Content-Security-Policy "default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline';worker-src 'self' blob:; font-src 'self';connect-src 'self' ws://1xrifkakfwgg7z43ydm6cgsfnwb7ks7rwhcjpatk98d694y4g5go.loki; frame-src http://81hud3kcymyqhw7dnxxcr3ffrmhg9ndf3te61xcxnp971rise4eo.loki;" always;
location /hls/ {
types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; }
root /tmp/;
@ -24,7 +22,12 @@ server {
location /stat.html {
rtmp_stat all;
rtmp_stat_stylesheet /stat.xsl;
add_header Refresh "3; $request_uri";
add_header Refresh "60; $request_uri";
}
location /viewers.html {
root /var/www/stream/;
add_header Refresh "60; $request_uri";
}
location /stat.xsl {

@ -1 +1 @@
<!DOCTYPE html><html><body>👁 1</body></html>
<!DOCTYPE html><html><body>👁 0</body></html>

Loading…
Cancel
Save