I am new to traefik and got stuck with the secure setup of the traefik dashboard (docker enviroment).
As soon as I try to secure the dashboard with basic auth and deliever it over https, I get error 404 in my browser. The insecure setup via port 8080 works without errors.
I have read many posts here on the forum, stackoverflow, etc and tried many different configurations but could not solve the problem.
My actual config i found on hxxts://dev.to in an post from Tashin. Maybe some of you could give me a hint. I think it a router problem but im̀ not sure.
The URL i try to access is:
entryPoints: web: address: :80 websecure: address: :443 api: insecure: false dashboard: true
version: '3.7' services: traefik: image: traefik:v2.8 container_name: traefik restart: unless-stopped environment: - TZ=Europe/Berlin command: --providers.docker labels: - "traefik.enable=true" - "traefik.http.routers.traefik_https.rule=Host(`traefik.xyz.xy`)" - "traefik.http.routers.traefik_https.entrypoints=websecure" - "traefik.http.routers.traefik_https.tls=true" - "traefik.http.routers.traefik_https.tls.certResolver=myresolver" - "traefik.http.routers.traefik_https.service=api@internal" - "traefik.http.routers.traefik_https.middlewares=basic-auth-global" - "traefik.http.middlewares.basic-auth-global.basicauth.users=xyz:xyz" ports: - "80:80" - "443:443" volumes: - /var/run/docker.sock:/var/run/docker.sock - ./traefik:/etc/traefik