update nginx

This commit is contained in:
Devdatt Bhatt 2026-05-11 17:30:27 +00:00
parent 1918fe4d33
commit 555fee9b49
3 changed files with 6 additions and 3 deletions

View File

@ -22,6 +22,7 @@ rtmp {
meta off; meta off;
wait_video on; wait_video on;
allow publish 127.0.0.1;
idle_streams off; idle_streams off;
hls on; hls on;
@ -45,6 +46,7 @@ rtmp {
meta off; meta off;
wait_video on; wait_video on;
allow publish 127.0.0.1;
idle_streams off; idle_streams off;
hls on; hls on;
@ -82,5 +84,4 @@ http {
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*; include /etc/nginx/sites-enabled/*;
} }

View File

@ -13,6 +13,8 @@ server {
# Handle OPTIONS requests # Handle OPTIONS requests
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
return 204; return 204;
} }

View File

@ -9,7 +9,7 @@ https://github.com/shreebhattji/Urmi/blob/main/licence.md
*/ */
exec("sudo chmod 444 /sys/class/dmi/id/product_uuid"); exec("sudo chmod 444 /sys/class/dmi/id/product_uuid");
$version = "12.21"; $version = "12.22";
function fail(string $msg): never function fail(string $msg): never
{ {