mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Fix nginx webmanifest sub_filter
This commit is contained in:
parent
060659044e
commit
d7e6118fa6
@ -41,6 +41,11 @@ http {
|
||||
default 1;
|
||||
}
|
||||
|
||||
map $http_x_ingress_path $ingress_path_filter {
|
||||
"~*^.+" $http_x_ingress_path;
|
||||
default "/";
|
||||
}
|
||||
|
||||
upstream frigate_api {
|
||||
server 127.0.0.1:5001;
|
||||
keepalive 1024;
|
||||
@ -313,8 +318,10 @@ http {
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter_once off;
|
||||
sub_filter_types application/json;
|
||||
sub_filter '"start_url": "/"' '"start_url" : "$http_x_ingress_path"';
|
||||
sub_filter '"src": "/' '"src": "$http_x_ingress_path/';
|
||||
sub_filter '"start_url": "/"' '"start_url" : "$ingress_path_filter"';
|
||||
sub_filter '"src": "/' '"src": "$ingress_path_filter';
|
||||
|
||||
|
||||
}
|
||||
|
||||
sub_filter 'href="/BASE_PATH/' 'href="$http_x_ingress_path/';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user