Add gzip-min-length as a configurable
This commit is contained in:
parent
71e35c9100
commit
d48d5a61ae
4 changed files with 12 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
"error-log-path": "/var/log/test/error.log",
|
||||
"use-gzip": "true",
|
||||
"gzip-level": "9",
|
||||
"gzip-min-length": "1024",
|
||||
"gzip-types": "text/html",
|
||||
"proxy-real-ip-cidr": "1.1.1.1/8,2.2.2.2/24",
|
||||
"bind-address": "1.1.1.1,2.2.2.2,3.3.3,2001:db8:a0b:12f0::1,3731:54:65fe:2::a7,33:33:33::33::33",
|
||||
|
|
@ -85,6 +86,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
def.ProxySendTimeout = 2
|
||||
def.UseProxyProtocol = true
|
||||
def.GzipLevel = 9
|
||||
def.GzipMinLength = 1024
|
||||
def.GzipTypes = "text/html"
|
||||
def.ProxyRealIPCIDR = []string{"1.1.1.1/8", "2.2.2.2/24"}
|
||||
def.BindAddressIpv4 = []string{"1.1.1.1", "2.2.2.2"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue