From 555fee9b4923361669bce909470ff18ee1d0c732 Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Mon, 11 May 2026 17:30:27 +0000 Subject: [PATCH] update nginx --- default_nginx.conf | 5 +++-- default_nginx_site | 2 ++ encoder/firmware.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/default_nginx.conf b/default_nginx.conf index 83512f0..b8dd3c9 100755 --- a/default_nginx.conf +++ b/default_nginx.conf @@ -22,6 +22,7 @@ rtmp { meta off; wait_video on; + allow publish 127.0.0.1; idle_streams off; hls on; @@ -45,6 +46,7 @@ rtmp { meta off; wait_video on; + allow publish 127.0.0.1; idle_streams off; hls on; @@ -82,5 +84,4 @@ http { include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; -} - \ No newline at end of file +} \ No newline at end of file diff --git a/default_nginx_site b/default_nginx_site index 29c5ce6..e7f52a3 100755 --- a/default_nginx_site +++ b/default_nginx_site @@ -13,6 +13,8 @@ server { # Handle OPTIONS requests if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Origin "*" always; + add_header Access-Control-Allow-Methods "GET, OPTIONS" always; return 204; } diff --git a/encoder/firmware.php b/encoder/firmware.php index d29f333..b0a93a1 100755 --- a/encoder/firmware.php +++ b/encoder/firmware.php @@ -9,7 +9,7 @@ https://github.com/shreebhattji/Urmi/blob/main/licence.md */ exec("sudo chmod 444 /sys/class/dmi/id/product_uuid"); -$version = "12.21"; +$version = "12.22"; function fail(string $msg): never {