forked from zuzu59/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.toml.190219.1112
55 lines (45 loc) · 1.16 KB
/
traefik.toml.190219.1112
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
# Service logs (here debug mode)
debug = true
traefikLogsFile = "/var/log/traefik/traefik.log"
logLevel = "DEBUG"
# Entrypoints
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
# Access log
filePath = "/var/log/traefik/access.log"
format = "common"
# Admin dashboard
[web]
address = ":8080"
# Let's Encrypt settings
[acme]
email = "hello@xorhak.org"
storage = "/etc/traefik/letsencrypt.json"
entryPoint = "https"
acmeLogging = true
onDemand = false
onHostRule = true
# Let's Encrypt domains
[[acme.domains]]
main = "api.home.xorhak.org"
# Reload is file modified
watch = true
# Backends (here RaspberyPiZero)
[backends]
[backends.back_raspberypi_api]
[backends.back_raspberrypi_api.servers.python_flask]
url = "http://192.168.1.37:5000"
# Fronts
[frontends]
[frontends.front_raspberrypi_api]
backend = "back_raspberrypi_api"
entrypoints = ["http", "https"]
passHostHeader = true
[frontends.front_raspberrypi_api.routes.desktoplamp]
rule = "Host:api.home.xorhak.org"