diff --git a/docker/rootfs/usr/local/nginx/conf/nginx.conf b/docker/rootfs/usr/local/nginx/conf/nginx.conf index 68d4b4148..1a7cef9a7 100644 --- a/docker/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/rootfs/usr/local/nginx/conf/nginx.conf @@ -170,8 +170,8 @@ http { proxy_set_header Host $host; } - location /go2rtc/ { - proxy_pass http://go2rtc/; + location ~ /go2rtc/(.*)$ { + proxy_pass http://go2rtc/$1; proxy_http_version 1.1; proxy_set_header Host $host; } @@ -184,14 +184,6 @@ http { proxy_set_header Host $host; } - location ~ /live/mp4/(.*)$ { - proxy_pass http://go2rtc/api/stream.mp4?src=$1; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - location /live/mse/ { proxy_pass http://go2rtc/; proxy_http_version 1.1;