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
This commit is contained in:
Felix Zenk 2024-04-08 23:05:38 +02:00 committed by GitHub
parent 55018372d4
commit 8aa1c704d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}