Documentation Index
Fetch the complete documentation index at: https://mintlify.com/traefik/traefik/llms.txt
Use this file to discover all available pages before exploring further.
Web Dashboard
The Traefik dashboard provides a visual interface for monitoring active routes, services, middlewares, and overall system health.Overview
The dashboard is the central place to visualize and monitor:- Active HTTP, TCP, and UDP routers
- Services and their health status
- Middleware chain configurations
- Entry points and their usage
- Provider information
- Real-time system statistics
/dashboard/ (trailing slash mandatory) on the same location as the API.
The trailing slash in
/dashboard/ is mandatory. Accessing /dashboard without the trailing slash will redirect to /dashboard/.Access Methods
There are two ways to access the dashboard:- Secure Mode (Recommended) - With authentication and custom routing
- Insecure Mode - For development/testing only
Secure Mode Configuration
This is the recommended approach for production environments.Create Router with Authentication
Configure a router pointing to the
api@internal service with authentication middleware:Dashboard Router Rule
The router rule must match both/api and /dashboard path prefixes.
Recommended: Host-Based Rule
/dashboard/ and /api.
Alternative: Path Prefix Rule
Combined Rule
Using a Host-based rule is the simplest and most reliable approach.
Authentication Examples
Basic Authentication
Generate password hash:Forward Authentication
Delegate authentication to an external service:IP Allow List
Restrict access by IP address:Custom Base Path
Customize the base path for API and dashboard endpoints:- Serves the API at
/traefik/api - Serves the dashboard at
/traefik/dashboard/
Insecure Mode
Insecure mode is for development and testing only. Never use in production.
http://<traefik-ip>:8080/dashboard/
traefik entry point doesn’t exist, it’s automatically created on port 8080.
Limitations of insecure mode:
- Cannot add authentication middleware
- Incompatible with custom base path
- Exposes all API endpoints without protection
Dashboard Features
HTTP Routers View
Displays all HTTP routers with:- Router name and provider
- Rule configuration
- Service assignment
- Middleware chain
- Entry points in use
- Status (enabled/disabled/warning/error)
HTTP Services View
Shows all services including:- Service name and type (load balancer, weighted, mirroring)
- Backend servers and their health status
- Load balancing configuration
- Used by which routers
HTTP Middlewares View
Lists all middlewares with:- Middleware name and type
- Configuration summary
- Which routers use this middleware
TCP Routers & Services
Similar views for TCP routers, services, and middlewares.UDP Routers & Services
Similar views for UDP routers and services.Features Overview
Displays:- Enabled providers (Docker, Kubernetes, File, etc.)
- Active features (Metrics, Tracing, Access Logs)
- System statistics
Disabling the Dashboard
To disable the dashboard while keeping the API enabled:Docker Example
Complete Docker Compose example with secure dashboard:docker-compose.yml
Kubernetes Example
dashboard-ingress.yaml
Troubleshooting
Dashboard Shows 404
Authentication Not Working
- Verify password hash is correctly formatted
- Check middleware is attached to the router
- Ensure router points to
api@internalservice
Dashboard Not Loading Assets
- Check browser console for errors
- Verify
Content-Security-Policyheaders - Ensure base path is correctly configured if using custom paths
Source Code Reference
Dashboard implementation:pkg/api/dashboard/dashboard.go:66-127