-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraefik-template.yml
39 lines (34 loc) · 1.04 KB
/
traefik-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
api:
dashboard: true
# https://doc.traefik.io/traefik/operations/dashboard/#insecure-mode
insecure: false
# https://doc.traefik.io/traefik/observability/logs/#level
log:
level: DEBUG
# https://doc.traefik.io/traefik/observability/access-logs/#configuration
accesslog:
addInternals: true
entryPoints:
websecure:
address: ":443"
# https://doc.traefik.io/traefik/v2.2/routing/entrypoints/#redirection
web:
address: ":80"
http:
redirections:
entryPoint:
to: "websecure"
scheme: "https"
providers:
# https://doc.traefik.io/traefik/providers/file/#directory
file:
directory: "/etc/traefik/config"
# https://doc.traefik.io/traefik/user-guides/docker-compose/acme-tls/
certificatesResolvers:
letsencryptresolver:
acme:
# https://doc.traefik.io/traefik/v2.3/getting-started/configuration-overview/#the-static-configuration
# We need to replace this when generating the file.
email: ${EMAIL_TO_BE_REPLACED}
storage: "/etc/certificates/acme.json"
tlsChallenge: {}