docker-deploy/traefik/conf/dashboard.yml

20 lines
488 B
YAML
Raw Normal View History

2021-09-19 13:56:24 +08:00
http:
middlewares:
dashboard-basicauth:
basicauth:
users:
- "traefik:$apr1$XDijc7ic$RofeDix3G.lYtoomdQ6TD."
dashboard-mw-chain:
chain:
middlewares:
- "gzip-compress"
- "dashboard-basicauth"
routers:
dashboard-web:
entrypoints: web
rule: "Host(`localhost`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
service: "api@internal"
middlewares:
- "dashboard-mw-chain"