Add /ws websocket proxy mapping for ingress; bump 0.3.7
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user