forked from sil-org/traefik-https-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtraefik_test.toml
More file actions
82 lines (66 loc) · 1.82 KB
/
traefik_test.toml
File metadata and controls
82 lines (66 loc) · 1.82 KB
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
################################################################
# 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 = "test@testing.com"
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
[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"