traefik: only log errors and redact headers

This commit is contained in:
Min RK
2018-07-30 15:40:10 +02:00
parent 8e75a44502
commit ad3b08abd8

View File

@@ -10,7 +10,14 @@ logLevel = "INFO"
[accessLog] [accessLog]
format = "json" format = "json"
[accessLog.filters] [accessLog.filters]
status = ["500-999"] statusCodes = ["500-999"]
[accessLog.fields.headers]
[accessLog.fields.headers.names]
Authorization = "redact"
Cookie = "redact"
Set-Cookie = "redact"
X-Xsrftoken = "redact"
[respondingTimeouts] [respondingTimeouts]
idleTimeout = "10m0s" idleTimeout = "10m0s"