From 0d1baaeda54bc85384e379fd9556c663d3aa59fc Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Thu, 14 Apr 2022 14:04:15 +0100 Subject: [PATCH] traefik: switch to insecure dashboard Remove the entrypoint and let traefik define it automatically --- environment/uat/docker-compose.yml | 7 ------- environment/uat/traefik/traefik.toml | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/environment/uat/docker-compose.yml b/environment/uat/docker-compose.yml index e38244c..3e82026 100644 --- a/environment/uat/docker-compose.yml +++ b/environment/uat/docker-compose.yml @@ -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: diff --git a/environment/uat/traefik/traefik.toml b/environment/uat/traefik/traefik.toml index c953af2..8eb75b5 100644 --- a/environment/uat/traefik/traefik.toml +++ b/environment/uat/traefik/traefik.toml @@ -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]