ensure params get passed to api for jpg

This commit is contained in:
Blake Blackshear 2022-04-26 07:17:47 -05:00
parent 91539de3ff
commit e33cd442cd

View File

@ -30,17 +30,17 @@ http {
gzip_vary on;
upstream frigate_api {
server localhost:5001;
server 127.0.0.1:5001;
keepalive 1024;
}
upstream mqtt_ws {
server localhost:5002;
server 127.0.0.1:5002;
keepalive 1024;
}
upstream jsmpeg {
server localhost:8082;
server 127.0.0.1:8082;
keepalive 1024;
}
@ -175,7 +175,7 @@ http {
location ~* /api/(.*\.(jpg|jpeg|png)$) {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
proxy_pass http://frigate_api/$1;
proxy_pass http://frigate_api/$1$is_args$args;
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;