最終更新 11 months ago

Traefik Configuration in TOML Format

supanadit revised this gist 11 months ago. Go to revision

No changes

supanadit revised this gist 11 months ago. Go to revision

1 file changed, 29 insertions

traefik.toml(file created)

@@ -0,0 +1,29 @@
1 + [api]
2 + dashboard = true
3 +
4 + [entryPoints]
5 + [entryPoints.web]
6 + address = ":80"
7 + # Uncomment this at production for redirecting to HTTPS automatically
8 + # [entryPoints.web.http.redirections.entryPoint]
9 + # to = "websecure"
10 + # scheme = "https"
11 + # permanent = true
12 +
13 + [entryPoints.websecure]
14 + address = ":443"
15 +
16 + [providers]
17 + [providers.docker]
18 + endpoint = "unix:///var/run/docker.sock"
19 + watch = true
20 +
21 + [providers.file]
22 + directory = "/etc/traefik"
23 + filename = "dynamic-conf.toml"
24 + watch = true
25 +
26 + [certificatesResolvers.lets-encrypt.acme]
27 + email = "xxx@xxx.com"
28 + storage = "acme.json"
29 + [certificatesResolvers.lets-encrypt.acme.tlsChallenge]
Newer Older