From 8aa1c704d9e452354a4740c6686746ad80c76466 Mon Sep 17 00:00:00 2001 From: Felix Zenk Date: Mon, 8 Apr 2024 23:05:38 +0200 Subject: [PATCH] Include leading slash of path in rewrite rule for frigate_api in nginx.conf Noticed the healthcheck curl requests were failing as they were routed to http://127.0.0.1:5001version instead of http://127.0.0.1:5001/version --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index 9f4687fa0..c961763b9 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -238,14 +238,14 @@ http { location /api/stats { access_log off; - rewrite ^/api/(.*)$ $1 break; + rewrite ^/api(/.*)$ $1 break; proxy_pass http://frigate_api; include proxy.conf; } location /api/version { access_log off; - rewrite ^/api/(.*)$ $1 break; + rewrite ^/api(/.*)$ $1 break; proxy_pass http://frigate_api; include proxy.conf; }