fix: allow remote gateway password config
This commit is contained in:
@@ -532,6 +532,7 @@ Auth and Tailscale:
|
|||||||
Remote client defaults (CLI):
|
Remote client defaults (CLI):
|
||||||
- `gateway.remote.url` sets the default Gateway WebSocket URL for CLI calls when `gateway.mode = "remote"`.
|
- `gateway.remote.url` sets the default Gateway WebSocket URL for CLI calls when `gateway.mode = "remote"`.
|
||||||
- `gateway.remote.token` supplies the token for remote calls (leave unset for no auth).
|
- `gateway.remote.token` supplies the token for remote calls (leave unset for no auth).
|
||||||
|
- `gateway.remote.password` supplies the password for remote calls (leave unset for no auth).
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
@@ -539,7 +540,8 @@ Remote client defaults (CLI):
|
|||||||
mode: "remote",
|
mode: "remote",
|
||||||
remote: {
|
remote: {
|
||||||
url: "ws://gateway.tailnet:18789",
|
url: "ws://gateway.tailnet:18789",
|
||||||
token: "your-token"
|
token: "your-token",
|
||||||
|
password: "your-password"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -308,6 +308,8 @@ export type GatewayRemoteConfig = {
|
|||||||
url?: string;
|
url?: string;
|
||||||
/** Token for remote auth (when the gateway requires token auth). */
|
/** Token for remote auth (when the gateway requires token auth). */
|
||||||
token?: string;
|
token?: string;
|
||||||
|
/** Password for remote auth (when the gateway requires password auth). */
|
||||||
|
password?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GatewayConfig = {
|
export type GatewayConfig = {
|
||||||
@@ -973,6 +975,7 @@ const ClawdisSchema = z.object({
|
|||||||
.object({
|
.object({
|
||||||
url: z.string().optional(),
|
url: z.string().optional(),
|
||||||
token: z.string().optional(),
|
token: z.string().optional(),
|
||||||
|
password: z.string().optional(),
|
||||||
})
|
})
|
||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user