Files
hassio-addons/birdnet-pipy/rootfs/etc/nginx/includes/ingress_params.conf
Alexandre 0275ce6d06 Comment out sub_filter_types in ingress_params.conf
Comment out the sub_filter_types directive in Nginx config.
2026-04-23 14:31:04 +02:00

13 lines
636 B
Plaintext

absolute_redirect off;
rewrite ^%%ingress_entry%%/(.*)$ /$1 break;
sub_filter_once on;
#sub_filter_types text/html;
# Rewrite the frontend's default <base href="/" /> to the ingress prefix so
# all relative URLs (assets, axios baseURL, socket.io path) resolve under
# ingress. The frontend declares BASE once via this tag; no other rewrites
# are needed. Pattern deliberately omits the closing bracket so it matches
# both self-closing (<base href="/" />) and non-self-closing (<base href="/">)
# forms. sub_filter_once above ensures only the first occurrence is touched.
sub_filter '<base href="/"' '<base href="%%ingress_entry%%/"';