traefik-vs-nginx-docker/traefik-ssl/traefik_dynamic.toml
2021-01-20 12:34:15 +00:00

12 lines
No EOL
312 B
TOML

[http.middlewares.simpleAuth.basicAuth]
users = [
"admin:$apr1$86fC1Dr4$tDIyf.Zhg4z.NSf3uHY./."
]
[http.routers.api]
rule = "Host(`yourdomain.com`)"
entrypoints = ["web","websecure"]
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"