From fd42359439d4da9a01df40c71edf50533b176578 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 14 Jun 2026 06:40:24 +0000 Subject: [PATCH] refactor: allow yaml caddy timeout values --- scripts/src/platform-infra.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/platform-infra.ts b/scripts/src/platform-infra.ts index b209c9c3..b8ea2e6f 100644 --- a/scripts/src/platform-infra.ts +++ b/scripts/src/platform-infra.ts @@ -860,7 +860,7 @@ function validatePublicExposureConfig(config: Sub2ApiPublicExposureConfig, path: validateProxyName(config.pk01.pikanodeContainerName, `${path}.publicExposure.pk01.pikanodeContainerName`); if (!isImageRepository(config.pk01.pikanodeImage) && !isImageReference(config.pk01.pikanodeImage)) throw new Error(`${configPath}.${path}.publicExposure.pk01.pikanodeImage has an unsupported format`); validatePort(config.pk01.pikanodeHttpHostPort, `${path}.publicExposure.pk01.pikanodeHttpHostPort`); - if (config.pk01.responseHeaderTimeoutSeconds < 1 || config.pk01.responseHeaderTimeoutSeconds > 3600) throw new Error(`${configPath}.${path}.publicExposure.pk01.responseHeaderTimeoutSeconds must be 1..3600`); + if (config.pk01.responseHeaderTimeoutSeconds < 1) throw new Error(`${configPath}.${path}.publicExposure.pk01.responseHeaderTimeoutSeconds must be >= 1`); } function validateEgressProxyConfig(config: Sub2ApiEgressProxyConfig, path: string): void {