Revert api regex change

This commit is contained in:
bartbutenaers 2025-03-10 07:22:51 +01:00 committed by GitHub
parent 19061ee844
commit 7efc96115e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,9 +236,9 @@ http {
include proxy.conf;
}
location ~* (?:/.*/)?api/.*\.(jpg|jpeg|png|webp|gif)$ {
location ~* /api/.*\.(jpg|jpeg|png|webp|gif)$ {
include auth_request.conf;
rewrite (?:/.*/)?api/(.*)$ /$1 break;
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://frigate_api;
include proxy.conf;
}