fix: OnDemand ratelimit config isn't handled properly (#124)

This commit is contained in:
Marc-Antoine 2023-03-19 16:43:41 +01:00 committed by GitHub
parent d385fc4741
commit 4c700115b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,9 @@ type ConfigMapOptions struct {
ProxyProtocol bool `json:"proxyProtocol,omitempty"`
Metrics bool `json:"metrics,omitempty"`
OnDemandTLS bool `json:"onDemandTLS,omitempty"`
OnDemandRateLimitInterval caddy.Duration `json:"onDemandTLSRateLimitInterval,omitempty"`
OnDemandRateLimitBurst int `json:"onDemandTLSRateLimitBurst,omitempty"`
OnDemandAsk string `json:"onDemandTLSAsk,omitempty"`
OnDemandRateLimitInterval caddy.Duration `json:"onDemandRateLimitInterval,omitempty"`
OnDemandRateLimitBurst int `json:"onDemandRateLimitBurst,omitempty"`
OnDemandAsk string `json:"onDemandAsk,omitempty"`
OCSPCheckInterval caddy.Duration `json:"ocspCheckInterval,omitempty"`
}