Change defaults

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-09-24 21:01:55 -03:00
parent 00324cec79
commit a990ac3910
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 8 additions and 8 deletions

View file

@ -764,7 +764,7 @@ func NewDefault() Configuration {
SSLSessionTickets: false,
SSLSessionTimeout: sslSessionTimeout,
EnableBrotli: false,
UseGzip: true,
UseGzip: false,
UseGeoIP: true,
UseGeoIP2: false,
WorkerProcesses: strconv.Itoa(runtime.NumCPU()),
@ -798,9 +798,9 @@ func NewDefault() Configuration {
ProxyHTTPVersion: "1.1",
ProxyMaxTempFileSize: "1024m",
},
UpstreamKeepaliveConnections: 32,
UpstreamKeepaliveConnections: 320,
UpstreamKeepaliveTimeout: 60,
UpstreamKeepaliveRequests: 100,
UpstreamKeepaliveRequests: 10000,
LimitConnZoneVariable: defaultLimitConnZoneVariable,
BindAddressIpv4: defBindAddress,
BindAddressIpv6: defBindAddress,

View file

@ -63,7 +63,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
"access-log-params": "buffer=4k gzip",
"access-log-path": "/var/log/test/access.log",
"error-log-path": "/var/log/test/error.log",
"use-gzip": "true",
"use-gzip": "false",
"gzip-level": "9",
"gzip-min-length": "1024",
"gzip-types": "text/html",