From e33cd442cd734eadd656b1e147949776f37578d1 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 26 Apr 2022 07:17:47 -0500 Subject: [PATCH] ensure params get passed to api for jpg --- docker/rootfs/usr/local/nginx/conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/rootfs/usr/local/nginx/conf/nginx.conf b/docker/rootfs/usr/local/nginx/conf/nginx.conf index 406af0526..c2ccc5079 100644 --- a/docker/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/rootfs/usr/local/nginx/conf/nginx.conf @@ -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;