traefik: disable insecure mode, re-add ip allowlist
parent
7ea7cff849
commit
3ffe0095fb
|
@ -20,6 +20,9 @@ services:
|
|||
- "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,7 +3,6 @@
|
|||
|
||||
[api]
|
||||
dashboard = true
|
||||
insecure = true
|
||||
|
||||
[log]
|
||||
level = "INFO"
|
||||
|
|
Loading…
Reference in New Issue