diff --git a/moltbot_assistant/config.yaml b/moltbot_assistant/config.yaml index 844c9c8..9a41f26 100644 --- a/moltbot_assistant/config.yaml +++ b/moltbot_assistant/config.yaml @@ -1,5 +1,5 @@ name: Moltbot Assistant -version: "0.3.6" +version: "0.3.7" 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 f8e1243..c214925 100644 --- a/moltbot_assistant/nginx.conf.tpl +++ b/moltbot_assistant/nginx.conf.tpl @@ -52,7 +52,23 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } - # Everything else (assets, ws, etc.) just proxy through. + # WebSocket endpoint compatibility: + # Some clients/UIs assume a dedicated /ws path. The gateway websocket endpoint + # itself is at /, so we map /ws -> / when proxying. + location /ws { + proxy_pass http://127.0.0.1:18789/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + } + + # Everything else (assets, api, etc.) just proxy through. location / { proxy_pass http://127.0.0.1:18789; proxy_http_version 1.1;