feat(configmap): expose gzip-disable (#9505)
* docs(configmap): add link for gzip-min-length * feat(configmap): expose gzip-disable * test(e2e): cover gzip settings * docs(configmap): simplify description with NGINX link * refactor(configmap): simplify condition
This commit is contained in:
parent
a069617ef8
commit
e6dcd6845e
5 changed files with 115 additions and 1 deletions
|
|
@ -64,6 +64,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
"access-log-path": "/var/log/test/access.log",
|
||||
"error-log-path": "/var/log/test/error.log",
|
||||
"use-gzip": "false",
|
||||
"gzip-disable": "msie6",
|
||||
"gzip-level": "9",
|
||||
"gzip-min-length": "1024",
|
||||
"gzip-types": "text/html",
|
||||
|
|
@ -87,6 +88,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
def.ProxyReadTimeout = 1
|
||||
def.ProxySendTimeout = 2
|
||||
def.UseProxyProtocol = true
|
||||
def.GzipDisable = "msie6"
|
||||
def.GzipLevel = 9
|
||||
def.GzipMinLength = 1024
|
||||
def.GzipTypes = "text/html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue