From 5970aead0d319e1e42e5a52a3d601c3c1e9a7ab3 Mon Sep 17 00:00:00 2001 From: Felix Zenk Date: Thu, 11 Apr 2024 13:41:07 +0200 Subject: [PATCH] Include leading slash of path in rewrite rule for frigate_api in nginx.conf (#10888) 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; }