From dea183efa52069fdc9c5954e749a97e980d7e4e1 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Wed, 2 Apr 2025 16:28:01 +0200 Subject: [PATCH] Log in local time --- .env.sample | 1 + docker-compose.yml | 2 ++ traefik.toml | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.env.sample b/.env.sample index c07cab0..7a7dc1b 100644 --- a/.env.sample +++ b/.env.sample @@ -1,3 +1,4 @@ HOST=traefik.FQDN #htpass in tetrix PASS=user:htpasswd +TZ=Europe/Paris diff --git a/docker-compose.yml b/docker-compose.yml index 0b6bf9f..3ced526 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,8 @@ services: networks: traefik: ipv4_address: '172.19.0.2' + environment: + TZ: restart: always labels: - "traefik.enable=true" diff --git a/traefik.toml b/traefik.toml index a85e351..9961dfe 100644 --- a/traefik.toml +++ b/traefik.toml @@ -8,6 +8,9 @@ [accessLog] filePath = "/var/log/access.log" bufferingSize = 20 + [accessLog.fields] + [accessLog.fields.names] + StartUTC= "drop" [traefikLog] filePath = "/var/log/traefik.log" -- GitLab