-
Notifications
You must be signed in to change notification settings - Fork 43
/
traefik.yml
139 lines (125 loc) · 3.75 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
## STATIC CONFIGURATION
# @see https://doc.traefik.io/traefik/v2.4/getting-started/configuration-overview/
# @see https://doc.traefik.io/traefik/v2.4/reference/static-configuration/cli/
# @see https://docs.traefik.io/v2.4/reference/static-configuration/file/
serversTransport:
insecureSkipVerify: true
global:
sendAnonymousUsage: false
checkNewVersion: false
log:
filePath: "/etc/traefik/traefik.log"
# format: json
level: INFO
accessLog:
format: json
filePath: "/etc/traefik/access.log"
bufferingSize: 100
filters:
# statusCodes:
# - "200"
# - "300-302"
minDuration: "2s"
fields:
defaultMode: keep
names:
StartUTC: drop
ClientUsername: drop
headers:
defaultMode: keep
names:
Authorization: drop
# https://doc.traefik.io/traefik/operations/api/#configuration
api:
# insecure: true
# debug: true
dashboard: true
metrics:
prometheus:
entryPoint: metrics
entryPoints:
web:
address: ":80"
# http:
# redirections:
# entrypoint:
# to: websecure
# scheme: https
# permanent: true
websecure:
address: ":443"
forwardedHeaders:
trustedIPs:
# Allow these IPs to set the X-Forwarded-* headers - Cloudflare IPs: https://www.cloudflare.com/ips/
- "173.245.48.0/20"
- "103.21.244.0/22"
- "103.22.200.0/22"
- "103.31.4.0/22"
- "141.101.64.0/18"
- "108.162.192.0/18"
- "190.93.240.0/20"
- "188.114.96.0/20"
- "197.234.240.0/22"
- "198.41.128.0/17"
- "162.158.0.0/15"
- "104.16.0.0/13"
- "104.24.0.0/14"
- "172.64.0.0/13"
- "131.0.72.0/22"
- "2400:cb00::/32"
- "2606:4700::/32"
- "2803:f800::/32"
- "2405:b500::/32"
- "2405:8100::/32"
- "2a06:98c0::/29"
- "2c0f:f248::/32"
# @see https://doc.traefik.io/traefik/routing/entrypoints/#transport
transport:
lifeCycle:
graceTimeOut: 60s
respondingTimeouts:
writeTimeout: 60s
# management:
# address: ":8443"
# # http:
# # redirections:
# # entrypoint:
# # to: management
# # scheme: https
# # permanent: true
# # priority: 99
# transport:
# lifeCycle:
# graceTimeOut: 5
# respondingTimeouts:
# writeTimeout: 5s
metrics:
address: ":8882"
do-nothing:
address: ":8888"
# certificatesResolvers:
# letsencrypt:
# acme:
# caServer: https://acme-v02.api.letsencrypt.org/directory
# keyType: RSA4096
# email: contact@yourdomain.tld
# storage: /etc/traefik/letsencrypt/acme.json
# dnsChallenge:
# provider: manual
# delayBeforeCheck: 60
# resolvers:
# - "1.1.1.1:53"
# - "8.8.8.8:53"
providers:
providersThrottleDuration: 5s
docker:
endpoint: "unix:///var/run/docker.sock"
watch: true
exposedByDefault: false
swarmMode: false
network: company_traefik_network
constraints: "Label(`traefik.tags`, `public`)"
file:
# Dynamic config
directory: /etc/traefik/dynamic
watch: true