traefik: switch to insecure dashboard

Remove the entrypoint and let traefik define it automatically
pull/4/head
Cameron Clough 2022-04-14 14:04:15 +01:00
parent 3ffe0095fb
commit 0d1baaeda5
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
2 changed files with 1 additions and 9 deletions

View File

@ -16,13 +16,6 @@ services:
- ./traefik:/etc/traefik
labels:
- "traefik.enable=true"
# Expose traefik dashboard at http://localhost:8080
- "traefik.http.routers.dashboard.rule=Host(`localhost`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.dashboard.entrypoints=dashboard"
- "traefik.http.routers.dashboard.service=api@internal"
# Secure the dashboard with IPWhiteList middleware
- "traefik.http.routers.dashboard.middlewares=dashboard-allowlist@docker"
- "traefik.http.middlewares.dashboard-allowlist.ipwhitelist.sourcerange=127.0.0.1/32,172.16.0.0/12"
# PostgreSQL database
db:

View File

@ -3,6 +3,7 @@
[api]
dashboard = true
insecure = true
[log]
level = "INFO"
@ -21,8 +22,6 @@
to = "websecure"
[entryPoints.websecure]
address = ":443"
[entryPoints.dashboard]
address = ":8080"
[certificatesResolvers]
[certificatesResolvers.retropilot]