Feat: add accesslog

This commit is contained in:
Bertrand Benjamin 2022-02-19 21:41:42 +01:00
parent 3084e8392d
commit 54332dc361
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,5 +3,6 @@ matrix/nginx/www/
matrix/synapse/media_store/ matrix/synapse/media_store/
traefik/certs/ traefik/certs/
traefik/log/
minio/data minio/data

View File

@ -19,6 +19,8 @@ services:
- ./config.yml:/etc/traefik/config.yml:ro - ./config.yml:/etc/traefik/config.yml:ro
# On map les certificats dans le conteneur # On map les certificats dans le conteneur
- ./certs:/etc/certs:ro - ./certs:/etc/certs:ro
- ./log:/var/log/traefik
- /usr/share/zoneinfo:/usr/share/zoneinfo:ro
networks: networks:
- gateway - gateway
labels: labels:

View File

@ -38,3 +38,12 @@ http:
redirectScheme: redirectScheme:
scheme: https scheme: https
permanent: true permanent: true
accessLog:
filePath: "/var/log/traefik/access.log"
fields:
defaultMode: keep
names:
StartUTC: drop
headers:
defaultMode: keep