summaryrefslogtreecommitdiff
path: root/kvmd/configs/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/configs/nginx/nginx.conf')
-rw-r--r--kvmd/configs/nginx/nginx.conf8
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;