traefik: disable insecure mode, re-add ip allowlist

pull/4/head
Cameron Clough 2022-04-14 13:54:17 +01:00
parent 7ea7cff849
commit 3ffe0095fb
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -3,7 +3,6 @@
[api]
dashboard = true
insecure = true
[log]
level = "INFO"