Fix terminal ingress proxy (/terminal redirect + ws); bump 0.4.5

This commit is contained in:
root
2026-01-30 15:49:18 +02:00
parent 0ca69b415b
commit 3fb362b536
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: Moltbot Assistant name: Moltbot Assistant
version: "0.4.4" version: "0.4.5"
slug: moltbot_assistant slug: moltbot_assistant
description: Run Moltbot Assistant (Clawdbot-compatible) as a Home Assistant add-on. description: Run Moltbot Assistant (Clawdbot-compatible) as a Home Assistant add-on.
url: https://github.com/techartdev/MoltBotHomeAssistant url: https://github.com/techartdev/MoltBotHomeAssistant
+12 -2
View File
@@ -22,8 +22,16 @@ http {
listen 8099; listen 8099;
# Web terminal (ttyd) # Web terminal (ttyd)
location /terminal/ { # ttyd base-path is configured as /terminal (no trailing slash).
proxy_pass http://127.0.0.1:7681/; # Some clients will hit /terminal first, so redirect to /terminal/.
location = /terminal {
return 302 /terminal/;
}
# Proxy everything under /terminal/ (including websocket /terminal/ws)
location ^~ /terminal/ {
# IMPORTANT: no trailing slash in proxy_pass so nginx preserves the full URI
proxy_pass http://127.0.0.1:7681;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
@@ -31,6 +39,8 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
} }
# Landing page (shown inside HA Ingress) # Landing page (shown inside HA Ingress)