Hi
I brand new to using Traefik, and im having some issues with the setup.
I have used this guide as a reference: https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04
Everything has gone as planed until i have to login to the dashboard. When i access the dashboard im prompted for credentials, but when i type in the credentials i am the login fails (as if i typed the wrong password).
I tried creating a new password, deleting the whole config and doing it all over, however nothing helps.
What am i doing wrong?
traefik.toml:
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[api]
dashboard = true
[certificatesResolvers.lets-encrypt.acme]
email = "email@domain.com"
storage = "acme.json"
[certificatesResolvers.lets-encrypt.acme.tlsChallenge]
[providers.docker]
watch = true
network = "web"
[providers.file]
filename = "traefik_dynamic.toml"
[accessLog]
filePath = "access.log"
bufferingSize = 100
traefik_dynamic.toml:
[http.middlewares.simpleAuth.basicAuth]
users = [
"admin:$apr1$9v.jkylR$OV1XQnqcqShtSed4K3did1"
]
[http.routers.api]
rule = "Host(`monitor.domain.com`)"
entrypoints = ["websecure"]
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"