feat(smart-proxy): add background concurrent certificate provisioning with per-domain timeouts and concurrency control
This commit is contained in:
@@ -180,6 +180,21 @@ export interface ISmartProxyOptions {
|
||||
*/
|
||||
certProvisionFallbackToAcme?: boolean;
|
||||
|
||||
/**
|
||||
* Per-domain timeout in ms for certProvisionFunction calls.
|
||||
* If a single domain's provisioning takes longer than this, it's aborted
|
||||
* and a certificate-failed event is emitted.
|
||||
* Default: 300000 (5 minutes)
|
||||
*/
|
||||
certProvisionTimeout?: number;
|
||||
|
||||
/**
|
||||
* Maximum number of domains to provision certificates for concurrently.
|
||||
* Prevents overwhelming ACME providers when many domains provision at once.
|
||||
* Default: 4
|
||||
*/
|
||||
certProvisionConcurrency?: number;
|
||||
|
||||
/**
|
||||
* Disable the default self-signed fallback certificate.
|
||||
* When false (default), a self-signed cert is generated at startup and loaded
|
||||
|
||||
Reference in New Issue
Block a user