Adjust BirdNET PiPy frontend base path

This commit is contained in:
Alexandre
2026-01-31 12:04:53 +01:00
parent 6e4898e597
commit f2d1fc777d
3 changed files with 113 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
absolute_redirect off;
rewrite ^%%ingress_entry%%/(.*)$ /$1 break;
sub_filter_once off;
sub_filter_types text/html;
sub_filter_types text/html text/css application/javascript;
sub_filter '<head>' '<head><base href="%%ingress_entry%%/">';
sub_filter 'href="/' 'href="%%ingress_entry%%/';
sub_filter 'src="/' 'src="%%ingress_entry%%/';
sub_filter '"/birdnet/' '"%%ingress_entry%%/birdnet/';
sub_filter 'url(/birdnet/' 'url(%%ingress_entry%%/birdnet/';