diff options
Diffstat (limited to 'kvmd/configs/nginx/nginx.conf')
-rw-r--r-- | kvmd/configs/nginx/nginx.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/configs/nginx/nginx.conf b/kvmd/configs/nginx/nginx.conf index 05a11bcc..e0744769 100644 --- a/kvmd/configs/nginx/nginx.conf +++ b/kvmd/configs/nginx/nginx.conf @@ -112,8 +112,8 @@ http { include /etc/nginx/proxy-params.conf; } - location /streamer { - rewrite /streamer/?(.*) /$1 break; + location ~ ^/streamer/(snapshot|stream)(?:/(.*))?$ { + rewrite /streamer/?(.*)(?:/(.*))?$ /?action=$1 break; proxy_pass http://mjpg_streamer; include /etc/nginx/proxy-params.conf; proxy_buffering off; |