KazV2/dockers/traefik/conf/traefik.yml.old
2024-06-03 18:43:35 +02:00

55 lines
1.1 KiB
YAML

providers:
file:
directory: "/etc/traefik/dynamic"
watch: true
docker: {}
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
http:
tls:
certResolver: letsencrypt
# Ajout d'un point d'entrée sur le port 8289
metrics:
address: ":8289"
#serversTransport:
# rootCAs:
# - /etc/letsencrypt/local/rootCA.pem
api:
dashboard: true
accessLog:
filePath: "/var/log/traefik/access.log"
format: json
certificatesresolvers:
letsencrypt:
acme:
# email: sysadmins@kaz.bzh
storage: /letsencrypt/acme.json
# caServer: "https://acme-staging.api.letsencrypt.org/directory"
httpChallenge:
entryPoint: web
# Ajout de la partie métrique qui concerne Prometheus
metrics:
prometheus:
# Nom du point d'entrée défini au dessus
entryPoint: metrics
# On configure la latence des métriques
buckets:
- 0.1
- 0.3
- 1.2
- 5.0
# Ajout des métriques sur les points d'entrée
addEntryPointsLabels: true
# Ajout des services
addServicesLabels: true