Add logout endpoint to Nginx configuration to prevent a new token on logout (#23678)

* Add logout endpoint to Nginx configuration to prevent logout from silently generating a new frigate_token cookie

* Change JWT cookie expiration to use max_age and have the appropriate expiration time based on JWT_SESSION_LENGTH

* ruff formatting
This commit is contained in:
nulledy
2026-07-14 02:35:51 -08:00
committed by GitHub
parent 775ce22204
commit 62d4e87e5d
2 changed files with 20 additions and 5 deletions
@@ -274,6 +274,13 @@ http {
include proxy.conf;
}
location /api/logout {
auth_request off;
rewrite ^/api(/.*)$ $1 break;
proxy_pass http://frigate_api;
include proxy.conf;
}
# Allow unauthenticated access to the first_time_login endpoint
# so the login page can load help text before authentication.
location /api/auth/first_time_login {