Skip to content

Commit

Permalink
Increase hash size
Browse files Browse the repository at this point in the history
  • Loading branch information
LorcanMcVeigh committed Sep 3, 2019
1 parent f56662d commit 8fb38cd
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions internal/configs/config_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,30 @@ type StaticConfigParams struct {
// NewDefaultConfigParams creates a ConfigParams with default values.
func NewDefaultConfigParams() *ConfigParams {
return &ConfigParams{
ServerTokens: "on",
ProxyConnectTimeout: "60s",
ProxyReadTimeout: "60s",
ProxySendTimeout: "60s",
ClientMaxBodySize: "1m",
SSLRedirect: true,
MainServerNamesHashMaxSize: "512",
ProxyBuffering: true,
MainWorkerProcesses: "auto",
MainWorkerConnections: "1024",
HSTSMaxAge: 2592000,
Ports: []int{80},
SSLPorts: []int{443},
MaxFails: 1,
MaxConns: 0,
UpstreamZoneSize: "256k",
FailTimeout: "10s",
LBMethod: "random two least_conn",
MainErrorLogLevel: "notice",
ResolverIPV6: true,
MainKeepaliveTimeout: "65s",
MainKeepaliveRequests: 100,
VariablesHashBucketSize: 256,
VariablesHashMaxSize: 1024,
ServerTokens: "on",
ProxyConnectTimeout: "60s",
ProxyReadTimeout: "60s",
ProxySendTimeout: "60s",
ClientMaxBodySize: "1m",
SSLRedirect: true,
MainServerNamesHashBucketSize: "256",
MainServerNamesHashMaxSize: "1024",
ProxyBuffering: true,
MainWorkerProcesses: "auto",
MainWorkerConnections: "1024",
HSTSMaxAge: 2592000,
Ports: []int{80},
SSLPorts: []int{443},
MaxFails: 1,
MaxConns: 0,
UpstreamZoneSize: "256k",
FailTimeout: "10s",
LBMethod: "random two least_conn",
MainErrorLogLevel: "notice",
ResolverIPV6: true,
MainKeepaliveTimeout: "65s",
MainKeepaliveRequests: 100,
VariablesHashBucketSize: 256,
VariablesHashMaxSize: 1024,
}
}

0 comments on commit 8fb38cd

Please sign in to comment.