refactor: allow yaml caddy timeout values

This commit is contained in:
Codex
2026-06-14 06:40:24 +00:00
parent a37c5bcbf0
commit fd42359439
+1 -1
View File
@@ -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 {