fix(webui): allow public WebSocket URLs with existing SSH
This commit is contained in:
1 parent
1180ef9db9
commit
9652302324
14 files changed
+26
-25
No files matched your search
@@ -275,7 +275,7 @@ export function RemoteConnectionsPage({ mainNavigationExpanded = false, hostChro
|
||||
finally { if (mounted.current) setBusy(""); }
|
||||
};
|
||||
const pageError = error || (directoryError ? t("remote.errors.directory_unavailable") : "");
|
||||
const nanobotError = /^(config_|runtime_user_|webui_|remote_auth_|remote_unreachable|incompatible_gateway|public_ws_|python_|probe_failed)/.test(errorCode);
|
||||
const nanobotError = /^(config_|runtime_user_|webui_|remote_auth_|remote_unreachable|incompatible_gateway|python_|probe_failed)/.test(errorCode);
|
||||
const locationStep = !!inspection || manualLocation || nanobotError;
|
||||
const openingProfile = !editorOpen && !fingerprint && !removing && !disconnecting
|
||||
? directory?.profiles.find((profile) => profile.id === busy) : null;
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "无法读取服务器上的 nanobot 配置。请确认所选文件是有效的 UTF-8 JSON。",
|
||||
"webui_disabled": "服务器的 WebUI 尚未启用,请先在服务器上开启。",
|
||||
"webui_auth_required": "服务器需要在配置中设置 WebUI 登录密钥。这里不需要模型 Key。",
|
||||
"public_ws_unsupported": "这台服务器设置了公网 WebSocket 地址。首版支持通过 SSH 连接回环地址上的 WebUI。",
|
||||
"remote_auth_failed": "服务器拒绝了 WebUI 登录凭据,请检查它实际运行的配置。",
|
||||
"incompatible_gateway": "该地址不是兼容的 nanobot gateway,请检查配置或更新服务器版本。",
|
||||
"webui_unavailable": "Gateway 在运行,但没有安装 WebUI。",
|
||||
|
||||
@@ -337,7 +337,6 @@
|
||||
"config_invalid": "Couldn't read the server's nanobot configuration. Check that the selected file is valid UTF-8 JSON.",
|
||||
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
|
||||
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
|
||||
"public_ws_unsupported": "This server uses a public WebSocket URL. This first version supports a loopback WebUI over SSH.",
|
||||
"remote_auth_failed": "The server rejected its saved WebUI credential. Check its running configuration.",
|
||||
"incompatible_gateway": "This endpoint isn't a compatible nanobot gateway. Update the server or check its configuration.",
|
||||
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
|
||||
|
||||
Reference in new issue
Block a user