From 93cd13041b82cb4f48f08387e4a1808cac88a94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 11 Nov 2026 02:03:13 +0100 Subject: [PATCH] Open the web UI at web/ to avoid failed asset preloads At .../web (no trailing slash) the browser's preload scanner resolves the UI's relative asset URLs against the ingress root before the inline script sets , so every page load logs a 404 for /assets/... (the real requests then succeed). Open the panel at web/ via ingress_entry and redirect / and /web to web/ in nginx. Co-Authored-By: Claude Opus 5.5 --- teddycloud/config.yaml | 1 + teddycloud/rootfs/etc/nginx/servers/ingress.conf | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/teddycloud/config.yaml b/teddycloud/config.yaml index 787313d..75e673f 100644 --- a/teddycloud/config.yaml +++ b/teddycloud/config.yaml @@ -6,6 +6,7 @@ description: An alternative server for your Toniebox url: https://github.com/mrueg/addon-teddycloud ingress: true ingress_stream: true +ingress_entry: web/ panel_icon: mdi:teddy-bear image: ghcr.io/mrueg/teddycloud/{arch} arch: diff --git a/teddycloud/rootfs/etc/nginx/servers/ingress.conf b/teddycloud/rootfs/etc/nginx/servers/ingress.conf index 08de9d2..76dd1af 100644 --- a/teddycloud/rootfs/etc/nginx/servers/ingress.conf +++ b/teddycloud/rootfs/etc/nginx/servers/ingress.conf @@ -29,6 +29,17 @@ server { allow 172.30.32.2; deny all; + # Serve the web UI as .../web/ (with trailing slash). At .../web the browser's + # preload scanner resolves the relative asset URLs against the ingress root + # before the UI's inline script sets , which logs failed requests. + location = / { + return 302 $http_x_ingress_path/web/; + } + + location = /web { + return 302 $http_x_ingress_path/web/$is_args$args; + } + location / { proxy_set_header Origin ""; # The backend redirects / to /web; keep that redirect inside the ingress path.