fix: allow remote gateway password config
This commit is contained in:
parent
8a2168ecf6
commit
23a29216d3
2 changed files with 6 additions and 1 deletions
|
|
@ -532,6 +532,7 @@ Auth and Tailscale:
|
|||
Remote client defaults (CLI):
|
||||
- `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.password` supplies the password for remote calls (leave unset for no auth).
|
||||
|
||||
```json5
|
||||
{
|
||||
|
|
@ -539,7 +540,8 @@ Remote client defaults (CLI):
|
|||
mode: "remote",
|
||||
remote: {
|
||||
url: "ws://gateway.tailnet:18789",
|
||||
token: "your-token"
|
||||
token: "your-token",
|
||||
password: "your-password"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -308,6 +308,8 @@ export type GatewayRemoteConfig = {
|
|||
url?: string;
|
||||
/** Token for remote auth (when the gateway requires token auth). */
|
||||
token?: string;
|
||||
/** Password for remote auth (when the gateway requires password auth). */
|
||||
password?: string;
|
||||
};
|
||||
|
||||
export type GatewayConfig = {
|
||||
|
|
@ -973,6 +975,7 @@ const ClawdisSchema = z.object({
|
|||
.object({
|
||||
url: z.string().optional(),
|
||||
token: z.string().optional(),
|
||||
password: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue