Merge pull request #379 from pikasTech/ymalops-round18
ymal-first Round 18: allow Sub2API Caddy timeout from YAML
This commit is contained in:
@@ -860,7 +860,7 @@ function validatePublicExposureConfig(config: Sub2ApiPublicExposureConfig, path:
|
|||||||
validateProxyName(config.pk01.pikanodeContainerName, `${path}.publicExposure.pk01.pikanodeContainerName`);
|
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`);
|
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`);
|
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 {
|
function validateEgressProxyConfig(config: Sub2ApiEgressProxyConfig, path: string): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user