Merge pull request #379 from pikasTech/ymalops-round18

ymal-first Round 18: allow Sub2API Caddy timeout from YAML
This commit is contained in:
Lyon
2026-06-14 14:41:58 +08:00
committed by GitHub
+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 {