-
Notifications
You must be signed in to change notification settings - Fork 1
/
traefik.https.yaml
51 lines (44 loc) · 1.04 KB
/
traefik.https.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
## STATIC CONFIG (restart traefik to update)
# log default is ERROR, but WARN is more helpful
log:
level: WARN
# enable ping so the `traefik healthcheck` works
ping: {}
# auto-proxy containers if they have proper labels
# and also use this file for dynamic config (tls)
providers:
docker:
exposedByDefault: false
watch: true
file:
fileName: /etc/traefik/traefik.yaml
watch: true
# listen on 80/443, and 8000/8443 and redirect all 80/8000 to 443/8443 via 301
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
websecure:
address: :443
api:
address: :8000
http:
redirections:
entryPoint:
to: apisecure
scheme: https
permanent: true
apisecure:
address: :8443
forwardedHeaders:
insecure: true
## DYNAMIC CONFIG
tls:
certificates:
- certFile: /certs/replace_this_with_your_cert_filename.crt
keyFile: /certs/replace_this_with_your_key_filename.key