mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Revert initial nginx.conf change
This commit is contained in:
parent
d1146a9d27
commit
3d984a55f0
@ -222,16 +222,12 @@ http {
|
|||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
# FIXME: Needed to disabled this rule, otherwise it fails for endpoints that end with one of those file extensions
|
location ~* /api/.*\.(jpg|jpeg|png|webp|gif)$ {
|
||||||
# 1. with httptools it passes the auth.conf but then throws a 400 error "WARN "Invalid HTTP request received." -> https://github.com/encode/uvicorn/blob/47304d9ae76321f0f5f649ff4f73e09b17085933/uvicorn/protocols/http/httptools_impl.py#L165
|
include auth_request.conf;
|
||||||
# 2. With h11 it goes through the auth.conf but returns a 404 error
|
rewrite ^/api/(.*)$ $1 break;
|
||||||
# We might need to add extra rules that will allow endpoint that end with an extension OR find a fix without creating other rules
|
proxy_pass http://frigate_api;
|
||||||
# location ~* /api/.*\.(jpg|jpeg|png|webp|gif)$ {
|
include proxy.conf;
|
||||||
# include auth_request.conf;
|
}
|
||||||
# rewrite ^/api/(.*)$ $1 break;
|
|
||||||
# proxy_pass http://frigate_api;
|
|
||||||
# include proxy.conf;
|
|
||||||
# }
|
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
include auth_request.conf;
|
include auth_request.conf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user