first pass at subfilter for ingress support

This commit is contained in:
Blake Blackshear 2021-01-19 19:58:17 -06:00
parent 2132352639
commit 507ec13848

View File

@ -106,6 +106,12 @@ http {
}
location / {
sub_filter 'href="/' 'href="$http_x_ingress_path/';
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;
}