Files
Moltbot/src/gateway/server/tls.ts
2026-01-19 10:09:04 +00:00

15 lines
512 B
TypeScript

import type { GatewayTlsConfig } from "../../config/types.gateway.js";
import {
type GatewayTlsRuntime,
loadGatewayTlsRuntime as loadGatewayTlsRuntimeConfig,
} from "../../infra/tls/gateway.js";
export type { GatewayTlsRuntime } from "../../infra/tls/gateway.js";
export async function loadGatewayTlsRuntime(
cfg: GatewayTlsConfig | undefined,
log?: { info?: (msg: string) => void; warn?: (msg: string) => void },
): Promise<GatewayTlsRuntime> {
return await loadGatewayTlsRuntimeConfig(cfg, log);
}