diff --git a/moltbot_assistant/config.yaml b/moltbot_assistant/config.yaml index c9a2aad..fe45c0f 100644 --- a/moltbot_assistant/config.yaml +++ b/moltbot_assistant/config.yaml @@ -1,5 +1,5 @@ name: Moltbot Assistant -version: "0.4.1" +version: "0.4.2" slug: moltbot_assistant description: Run Moltbot Assistant (Clawdbot-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/ClawdHAAddOn diff --git a/moltbot_assistant/nginx.conf.tpl b/moltbot_assistant/nginx.conf.tpl index 001127c..2d44950 100644 --- a/moltbot_assistant/nginx.conf.tpl +++ b/moltbot_assistant/nginx.conf.tpl @@ -55,6 +55,10 @@ http { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; + # Debug: expose the ingress path nginx sees (from HA) to the browser. + # Remove once confirmed. + add_header X-Debug-Ingress-Path $http_x_ingress_path always; + # Inject the correct WS URL when running behind HA Ingress. # HA provides a per-session ingress proxy path in X-Ingress-Path (usually /api/hassio_ingress/). # The UI loaded at /hassio/ingress/ cannot be used as a WS endpoint on some setups, @@ -66,7 +70,7 @@ http { proxy_set_header Accept-Encoding ""; sub_filter_types text/html; sub_filter_once on; - sub_filter '' ''; + sub_filter '' ''; sub_filter '__INGRESS_PATH__' "$http_x_ingress_path"; }