mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
first pass at subfilter for ingress support
This commit is contained in:
@@ -106,8 +106,14 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /opt/frigate/web;
|
sub_filter 'href="/' 'href="$http_x_ingress_path/';
|
||||||
try_files $uri $uri/ /index.html;
|
sub_filter 'url(/' 'url($http_x_ingress_path/';
|
||||||
|
sub_filter '"/js/' '"$http_x_ingress_path/js/';
|
||||||
|
sub_filter '<body>' '<body><script>window.baseUrl="$http_x_ingress_path";</script>';
|
||||||
|
sub_filter_types text/css application/javascript;
|
||||||
|
sub_filter_once off;
|
||||||
|
root /opt/frigate/web;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user