summaryrefslogtreecommitdiff
path: root/kvmd/configs
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-28 10:41:16 +0300
committerDevaev Maxim <[email protected]>2018-08-28 10:41:16 +0300
commitbc24d2c19327db81e0c3f491135e2c7c1a5dd098 (patch)
treef34f64b7e2408079bb156c8bd3cd5115df1c6131 /kvmd/configs
parent16345b10057adc3615fd78c0311e2a58edabbf52 (diff)
unifised urls without binding to mjpg_streamer
Diffstat (limited to 'kvmd/configs')
-rw-r--r--kvmd/configs/nginx/nginx.conf4
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;