absolute_redirect off;
rewrite ^%%ingress_entry%%/(.*)$ /$1 break;
sub_filter_once on;
sub_filter_types text/html;
# Rewrite the frontend's default 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 () and non-self-closing ()
# forms. sub_filter_once above ensures only the first occurrence is touched.
sub_filter '