Skip to content

Instantly share code, notes, and snippets.

@Shogan
Created November 21, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shogan/f96a5a20183e672f9c49f278ea67503b to your computer and use it in GitHub Desktop.
Save Shogan/f96a5a20183e672f9c49f278ea67503b to your computer and use it in GitHub Desktop.
an example of a traefik dynamic toml configuration
[http.middlewares.simpleAuth.basicAuth]
users = [
"YourUsername:$apr1$bJDZ0TQm$IBSNb2xcRsYrIdcJxNG1h."
]
[http.routers.api]
rule = "Host(`dashboard.example.com`)"
entrypoints = ["websecure"]
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment