-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtraefik_test.toml
95 lines (77 loc) · 2.16 KB
/
traefik_test.toml
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
################################################################
# Global configuration
################################################################
# Enable debug mode
#
# Optional
# Default: false
#
debug = true
# Log level
#
# Optional
# Default: "ERROR"
#
logLevel = "DEBUG"
# Entrypoints to be used by frontends that do not specify any entrypoint.
defaultEntryPoints = ["http", "https"]
# Entrypoints definition
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "[email protected]"
storage = "/cert/acme.json"
entryPoint = "https"
[acme.dnsChallenge]
provider = "DNS_PROVIDER"
delayBeforeCheck = 60
caServer = "https://acme-staging.api.letsencrypt.org/directory"
acmeLogging = true
[[acme.domains]]
main = "testing.com"
sans = ["test.testing.com", "another.testing.com"]
################################################################
# File configuration backend
################################################################
[file]
[backends]
[backends.backend1]
[backends.backend1.servers]
[backends.backend1.servers.server0]
url = "http://app:80"
weight = 1
[backends.backend2]
[backends.backend2.servers]
[backends.backend2.servers.server0]
url = "BACKEND2_URL"
weight = 1
[backends.backend3]
[backends.backend3.servers]
[backends.backend3.servers.server0]
url = "BACKEND3_URL"
weight = 1
[frontends]
[frontends.frontend1]
entryPoints = ["http", "https"]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.routes.default]
rule = "Host: test.testing.com"
[frontends.frontend2]
entryPoints = ["http", "https"]
backend = "backend2"
passHostHeader = true
[frontends.frontend2.routes.default]
rule = "Host: FRONTEND2_DOMAIN"
[frontends.frontend3]
entryPoints = ["http", "https"]
backend = "backend3"
passHostHeader = true
[frontends.frontend3.routes.default]
rule = "Host: FRONTEND3_DOMAIN"