mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
v2 beta
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user