fix(config): allow gateway.remote ssh fields
This commit is contained in:
@@ -81,6 +81,8 @@ const GROUP_ORDER: Record<string, number> = {
|
||||
|
||||
const FIELD_LABELS: Record<string, string> = {
|
||||
"gateway.remote.url": "Remote Gateway URL",
|
||||
"gateway.remote.sshTarget": "Remote Gateway SSH Target",
|
||||
"gateway.remote.sshIdentity": "Remote Gateway SSH Identity",
|
||||
"gateway.remote.token": "Remote Gateway Token",
|
||||
"gateway.remote.password": "Remote Gateway Password",
|
||||
"gateway.auth.token": "Gateway Token",
|
||||
@@ -134,6 +136,10 @@ const FIELD_LABELS: Record<string, string> = {
|
||||
|
||||
const FIELD_HELP: Record<string, string> = {
|
||||
"gateway.remote.url": "Remote Gateway WebSocket URL (ws:// or wss://).",
|
||||
"gateway.remote.sshTarget":
|
||||
"Remote gateway over SSH (tunnels the gateway port to localhost). Format: user@host or user@host:port.",
|
||||
"gateway.remote.sshIdentity":
|
||||
"Optional SSH identity file path (passed to ssh -i).",
|
||||
"gateway.auth.token":
|
||||
"Required for multi-machine access or non-loopback binds.",
|
||||
"gateway.auth.password": "Required for Tailscale funnel.",
|
||||
@@ -208,6 +214,7 @@ const FIELD_HELP: Record<string, string> = {
|
||||
|
||||
const FIELD_PLACEHOLDERS: Record<string, string> = {
|
||||
"gateway.remote.url": "ws://host:18789",
|
||||
"gateway.remote.sshTarget": "user@host",
|
||||
"gateway.controlUi.basePath": "/clawdbot",
|
||||
};
|
||||
|
||||
|
||||
@@ -1283,6 +1283,8 @@ export const ClawdbotSchema = z.object({
|
||||
remote: z
|
||||
.object({
|
||||
url: z.string().optional(),
|
||||
sshTarget: z.string().optional(),
|
||||
sshIdentity: z.string().optional(),
|
||||
token: z.string().optional(),
|
||||
password: z.string().optional(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user