diff --git a/encoder/static.php b/encoder/static.php index f4c9a6c..4d47058 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -1235,6 +1235,7 @@ rtmp { meta off; wait_video on; deny play all; + allow play 127.0.0.1; allow publish all; " . $rtmp_input_copy . " } @@ -1248,8 +1249,8 @@ rtmp { record off; meta off; wait_video on; - allow publish 127.0.0.1; deny publish all; + allow publish 127.0.0.1; allow play all; " . $hls0 . " @@ -1261,6 +1262,10 @@ rtmp { record off; meta off; wait_video on; + deny publish all; + allow publish 127.0.0.1; + allow play all; + " . $hls1 . " " . $dash1 . " " . $rtmp_push1 . " diff --git a/install.sh b/install.sh index 5e1d321..9b6656e 100755 --- a/install.sh +++ b/install.sh @@ -411,6 +411,7 @@ sudo ufw allow proto udp to 224.0.0.0/4 sudo ufw route allow proto udp to 224.0.0.0/4 sudo ufw deny out to 239.255.254.254 port 39000 proto udp sudo systemctl daemon-reload + sudo chmod 444 /sys/class/dmi/id/product_uuid sudo systemctl disable systemd-networkd-wait-online.service sudo systemctl mask systemd-networkd-wait-online.service