mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 18:17:36 +03:00
add no auth exception to nginx config
This commit is contained in:
parent
075c642691
commit
125b62748c
@ -274,6 +274,18 @@ http {
|
|||||||
include proxy.conf;
|
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 {
|
||||||
|
auth_request off;
|
||||||
|
limit_except GET {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
rewrite ^/api(/.*)$ $1 break;
|
||||||
|
proxy_pass http://frigate_api;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
location /api/stats {
|
location /api/stats {
|
||||||
include auth_request.conf;
|
include auth_request.conf;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user