Jafner.net/homelab/server/config/traefik/config/traefik_config_dynamic.toml
2022-02-08 17:00:27 -08:00

20 lines
498 B
TOML

[http]
[http.routers]
[http.routers.api]
rule = "Host(`traefik.jafner.net`)"
entryPoints = ["websecure"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"
[http.middlewares]
[http.middlewares.lan-only]
[http.middlewares.lan-only.ipWhiteList]
sourceRange = ["127.0.0.1/32", "192.168.1.1/24"]
[http.middlewares.simpleauth]
[http.middlewares.simpleauth.basicAuth]
usersFile = "/.htpasswd"