add limit connection status code

add default conn status code

add missing colon

add limit connection status code
This commit is contained in:
Shai Katz 2019-01-09 16:41:58 +02:00
parent b433108ead
commit edd87fbae3
3 changed files with 12 additions and 0 deletions

View file

@ -519,6 +519,11 @@ type Configuration struct {
// Default: 503
LimitReqStatusCode int `json:"limit-req-status-code"`
// LimitConnStatusCode Sets the status code to return in response to rejected connections.
// http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn_status
// Default: 503
LimitConnStatusCode int `json:"limit-conn-status-code"`
// EnableSyslog enables the configuration for remote logging in NGINX
EnableSyslog bool `json:"enable-syslog"`
// SyslogHost FQDN or IP address where the logs should be sent
@ -675,6 +680,7 @@ func NewDefault() Configuration {
JaegerSamplerType: "const",
JaegerSamplerParam: "1",
LimitReqStatusCode: 503,
LimitConnStatusCode: 503,
SyslogPort: 514,
NoTLSRedirectLocations: "/.well-known/acme-challenge",
NoAuthLocations: "/.well-known/acme-challenge",