unifised urls without binding to mjpg_streamer

This commit is contained in:
Devaev Maxim
2018-08-28 10:41:16 +03:00
parent 16345b1005
commit bc24d2c193
2 changed files with 4 additions and 4 deletions

View File

@@ -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;