Log headers for easier debug and fix timezone
This commit is contained in:
parent
f956b81e24
commit
3a0455e577
|
@ -12,11 +12,12 @@ services:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./traefik.toml:/traefik.toml
|
- ./traefik.toml:/traefik.toml
|
||||||
- ./traefik_dynamic.toml:/traefik_dynamic.toml
|
- ./traefik_dynamic.toml:/traefik_dynamic.toml
|
||||||
- /DATA/docker/traefik/certs:/certs
|
- /DATA/docker/traefik/certs:/certs
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Paris
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.traefik-metrics.entrypoints: websecure
|
traefik.http.routers.traefik-metrics.entrypoints: websecure
|
||||||
traefik.http.routers.traefik-metrics.rule: "Host(`${SERVER_NAME}`) && PathPrefix(`/metrics`)"
|
traefik.http.routers.traefik-metrics.rule: "Host(`${SERVER_NAME}`) && PathPrefix(`/metrics`)"
|
||||||
|
|
|
@ -33,6 +33,13 @@
|
||||||
level = "INFO"
|
level = "INFO"
|
||||||
|
|
||||||
[accessLog]
|
[accessLog]
|
||||||
|
format = "json"
|
||||||
|
[accessLog.fields.headers]
|
||||||
|
defaultMode = "keep"
|
||||||
|
# See https://doc.traefik.io/traefik/observability/access-logs/#time-zones
|
||||||
|
[accessLog.fields.names]
|
||||||
|
"StartUTC" = "drop"
|
||||||
|
"ClientUsername" = "drop"
|
||||||
|
|
||||||
[certificatesResolvers]
|
[certificatesResolvers]
|
||||||
[certificatesResolvers.letsencrypt]
|
[certificatesResolvers.letsencrypt]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user