Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions teddycloud/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions teddycloud/rootfs/etc/nginx/servers/ingress.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 <base href>, 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.
Expand Down
Loading