feat: add gateway tls support

This commit is contained in:
Peter Steinberger committed 2026-01-19 10:08:01 +00:00
1 parent 73e9e787b4
commit b347d5d9cc
12 files changed
+105 -11

No files matched your search

+3
View File
@@ -127,6 +127,8 @@ export type GatewayHttpConfig = {
endpoints?: GatewayHttpEndpointsConfig;
};
export type GatewayTlsConfig = BridgeTlsConfig;
export type GatewayConfig = {
/** Single multiplexed port for Gateway WS + HTTP (default: 18789). */
port?: number;
@@ -151,5 +153,6 @@ export type GatewayConfig = {
tailscale?: GatewayTailscaleConfig;
remote?: GatewayRemoteConfig;
reload?: GatewayReloadConfig;
tls?: GatewayTlsConfig;
http?: GatewayHttpConfig;
};
+9
View File
@@ -300,6 +300,15 @@ export const ClawdbotSchema = z
})
.strict()
.optional(),
tls: z
.object({
enabled: z.boolean().optional(),
autoGenerate: z.boolean().optional(),
certPath: z.string().optional(),
keyPath: z.string().optional(),
caPath: z.string().optional(),
})
.optional(),
http: z
.object({
endpoints: z