Web / Traefik Interview questions
How do you enable the Traefik dashboard?
The dashboard is enabled in the static configuration by setting api.dashboard: true, then exposing it through a router just like any other service, since the dashboard itself is served as an internal Traefik service named api@internal.
In production it should never be exposed without protection; a common pattern is to attach a BasicAuth or ForwardAuth middleware to the dashboard router, or restrict it to an internal-only entrypoint.
api: dashboard: true # dynamic config http: routers: dashboard: rule: "Host(`traefik.example.com`)" service: api@internal middlewares: - dashboard-auth
More Related questions...