Fix terminal: pass JWT via query param, remove Docker-incompatible IP check
Deploy Dashboard / deploy (push) Failing after 2m11s

This commit is contained in:
Gan, Jimmy
2026-02-19 17:44:55 +08:00
parent bf49e13e56
commit 69bd41b5a1
2 changed files with 18 additions and 17 deletions
@@ -38,7 +38,8 @@
fit.fit();
const proto = location.protocol === "https:" ? "wss:" : "ws:";
const ws = new WebSocket(`${proto}//${location.host}/ws/terminal`);
const token = localStorage.getItem("token") || "";
const ws = new WebSocket(`${proto}//${location.host}/ws/terminal?token=${encodeURIComponent(token)}`);
ws.binaryType = "arraybuffer";
ws.onopen = () => {