Hi,
I'm running traefik 2.4 on a synology nas for SSL termination using a macvlandapter (macnet) on ip .200 supported by an aux address .199. This allows me to use port 80/443 without having to finddle around with the synology conf every time it gets an update. DNS for hostname traefik is setup as well to .200.
All my containers behind traefik are running fine connected to the backend net and are reachable.
However, the dashboard of traefik is not reachable - getting a 404 when trying to access https://traefik/dashboard/ - and I cannot figure out why. Logs also don't give any clue, maybe I'm overlooking sth. there. Via http using api.insecure the dashboard is working fine.
Any ideas what might be wrong about my config?
version: '2.4'
networks:
backend:
name: backend
macnet:
external: true
name: macnet
services:
app:
image: traefik:v2.4
command:
- --log.filePath=/var/log/traefik.log
- --log.level=DEBUG
- --accesslog=true
- --accesslog.bufferingsize=100
- --accesslog.filepath=/var/log/access.log
- --accesslog.filters.statuscodes=400-600
- --api.dashboard=true
- --providers.docker
- --providers.docker.exposedbydefault=false
- --providers.file.directory=/etc/traefik/dynamic_conf
- --entrypoints.websecure.address=:443
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.mqtt.address=:1883
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.auth.basicauth.users=omitted"
- "traefik.http.routers.dashboard.middlewares=auth"
- "traefik.http.routers.dashboard.rule=(Host(`traefik`) || Host(`traefik.lan`)) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls=true"
networks:
macnet:
ipv4_address: 192.168.1.200
backend: {}
volumes:
- ./certs:/certs:ro
- ./dynamic_conf:/etc/traefik/dynamic_conf:rw
- ./logs:/var/log:rw
- /var/run/docker.sock:/var/run/docker.sock:rw
whoami:
# A container that exposes an API to show its IP address
image: traefik/whoami
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.lan`)"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.entrypoints=websecure"
networks:
backend: {}