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
This commit is contained in:
Felix Zenk 2024-04-11 13:41:07 +02:00 committed by GitHub
parent 3d43c5e811
commit 5970aead0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -238,14 +238,14 @@ http {
location /api/stats { location /api/stats {
access_log off; access_log off;
rewrite ^/api/(.*)$ $1 break; rewrite ^/api(/.*)$ $1 break;
proxy_pass http://frigate_api; proxy_pass http://frigate_api;
include proxy.conf; include proxy.conf;
} }
location /api/version { location /api/version {
access_log off; access_log off;
rewrite ^/api/(.*)$ $1 break; rewrite ^/api(/.*)$ $1 break;
proxy_pass http://frigate_api; proxy_pass http://frigate_api;
include proxy.conf; include proxy.conf;
} }