-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtraefik.yml
64 lines (53 loc) · 1.53 KB
/
traefik.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
entryPoints:
web:
address: ":80"
# # Redirect HTTP to HTTPS
# http:
# redirections:
# entryPoint:
# to: websecure
# scheme: https
websecure:
address: ":443"
# Configure ACME (Let's Encrypt): automatic SSL/TLS certificates
certificatesResolvers:
myresolver:
acme:
# Email address for Let's Encrypt notifications
email: [email protected]
# Storage for ACME certificates
storage: /etc/traefik/acme.json
# Use HTTP-01 challenge
httpChallenge:
entryPoint: web
# Alternatively, use DNS challenge (required for wildcard certificates)
# dnsChallenge:
# provider: cloudflare
# resolvers:
# - "1.1.1.1:53"
# - "8.8.8.8:53"
# Enable Traefik dashboard
# The dashboard is a simple web interface to monitor and debug your reverse proxy
# It is not recommended to expose the dashboard to the public internet
api:
# Enable the dashboard
dashboard: true
# Disable secure communication (HTTPS)
# This is not recommended for production use
insecure: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
file:
directory: "/etc/traefik/dynamic"
watch: true
middlewares:
auth-middleware:
basicAuth:
users:
# Generated using htpasswd -nb user password
- "admin:$apr1$ruca84Hq$mbjdMZBAG.KWn7vfN/SNK/" # username: admin, password: password
accessLog: {}
log:
level: TRACE # DEBUG, INFO, WARNING, ERROR, CRITICAL
format: COMMON # common, json, logfmt