supanadit

supanadit / dynamic-conf.toml

Last active 4 weeks ago

Like 0

Traefik Dynamic Configuration Example

supanadit revised this gist 1 year ago · 63160b4

1 file changed, 12 insertions

dynamic-conf.toml (file created)
@@ -0,0 +1,12 @@
1 + [http.routers]
2 + # Traefik
3 + [http.routers.api]
4 + rule = "Host(`traefik.supanadit.com`)"
5 + # Uncomment this for production use
6 + # entrypoints = ["web","websecure"]
7 + # Comment this for production use
8 + entrypoints = ["web"]
9 + service = "api@internal"
10 + # Uncomment this for production use
11 + # [http.routers.api.tls]
12 + # certResolver = "lets-encrypt"