diff options
author | Devaev Maxim <[email protected]> | 2018-09-26 02:11:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-09-26 02:11:23 +0300 |
commit | 940989b6e9a3fe31bd236e4bed96e1d4778a403b (patch) | |
tree | 0ed5679b56b198db88b27390b92e29019cd4ab6f /kvmd/configs/nginx/nginx.conf | |
parent | 6e9a3222ce566f6430caad541c2695255cb06d7c (diff) |
v2 beta
Diffstat (limited to 'kvmd/configs/nginx/nginx.conf')
-rw-r--r-- | kvmd/configs/nginx/nginx.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/configs/nginx/nginx.conf b/kvmd/configs/nginx/nginx.conf index e0744769..f0d6965b 100644 --- a/kvmd/configs/nginx/nginx.conf +++ b/kvmd/configs/nginx/nginx.conf @@ -31,7 +31,7 @@ http { server localhost:8081 fail_timeout=0s max_fails=0; } - upstream mjpg_streamer { + upstream ustreamer { server localhost:8082 fail_timeout=0s max_fails=0; } @@ -112,9 +112,9 @@ http { include /etc/nginx/proxy-params.conf; } - location ~ ^/streamer/(snapshot|stream)(?:/(.*))?$ { - rewrite /streamer/?(.*)(?:/(.*))?$ /?action=$1 break; - proxy_pass http://mjpg_streamer; + location /streamer { + rewrite /streamer/?(.*) /$1 break; + proxy_pass http://ustreamer; include /etc/nginx/proxy-params.conf; proxy_buffering off; proxy_ignore_headers X-Accel-Buffering; |