traefik: switch to insecure dashboard
Remove the entrypoint and let traefik define it automaticallypull/4/head
parent
3ffe0095fb
commit
0d1baaeda5
|
@ -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:
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue