Add support for access-log-path and error-log-path
This commit is contained in:
parent
e7d2ff6fac
commit
dd00b6d7b3
4 changed files with 24 additions and 4 deletions
|
|
@ -39,6 +39,8 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
"skip-access-log-urls": "/log,/demo,/test",
|
||||
"use-proxy-protocol": "true",
|
||||
"disable-access-log": "true",
|
||||
"access-log-path": "/var/log/test/access.log",
|
||||
"error-log-path": "/var/log/test/error.log",
|
||||
"use-gzip": "true",
|
||||
"enable-dynamic-tls-records": "false",
|
||||
"gzip-types": "text/html",
|
||||
|
|
@ -47,6 +49,8 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
|||
def := config.NewDefault()
|
||||
def.CustomHTTPErrors = []int{300, 400}
|
||||
def.DisableAccessLog = true
|
||||
def.AccessLogPath = "/var/log/test/access.log"
|
||||
def.ErrorLogPath = "/var/log/test/error.log"
|
||||
def.SkipAccessLogURLs = []string{"/log", "/demo", "/test"}
|
||||
def.ProxyReadTimeout = 1
|
||||
def.ProxySendTimeout = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue