Change defaults
This commit is contained in:
parent
00324cec79
commit
a990ac3910
3 changed files with 8 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue