infrastructure/ansible/plays/services/traefik/traefik.yaml

45 lines
900 B
YAML
Raw Normal View History

log:
level: ERROR
2023-04-16 16:10:44 +02:00
metrics:
prometheus:
addEntryPointsLabels: true
addServicesLabels: true
addRoutersLabels: true
entryPoint: metrics
providers:
docker:
exposedbydefault: false
2022-10-01 15:34:55 +02:00
file:
filename: /etc/traefik/dynamic.yaml
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
2023-09-25 22:34:28 +02:00
middlewares:
- "hsts@file"
2023-04-16 16:10:44 +02:00
metrics:
address: ":9091"
2023-08-10 14:16:30 +02:00
http:
middlewares:
- "metrics-ipwhitelist@file"
websecure:
address: ":443"
http:
2023-09-25 22:34:28 +02:00
middlewares:
- "hsts@file"
tls:
certResolver: letsencrypt
certificatesResolvers:
letsencrypt:
acme:
email: webmaster@tobiasmanske.de
storage: /acme/acme.json
# caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
2023-03-30 21:51:23 +02:00
tlsChallenge: true