From afcecdb85044f82fafdbd82e8062f07b70ea567c Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 6 Jul 2020 18:54:38 +0200 Subject: [PATCH] path prefix glances --- .env.default | 3 ++- glances/docker-compose.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.default b/.env.default index 83f49ac..689a02b 100644 --- a/.env.default +++ b/.env.default @@ -4,7 +4,8 @@ LETSENCRYPT_EMAIL=root@localhost.localdomain # sites DOMAIN=localhost.localdomain HOST_WWW=www -PATH_PORTAINER=/console +PATH_PORTAINER=/portainer +PATH_GLANCES=/glances HOST_TRAEFIK=traefik HOST_GLANCES=glances HOST_PORTAINER=portainer diff --git a/glances/docker-compose.yml b/glances/docker-compose.yml index f4354dc..35fa132 100644 --- a/glances/docker-compose.yml +++ b/glances/docker-compose.yml @@ -21,6 +21,10 @@ services: - traefik.http.routers.glances.entrypoints=websecure - traefik.http.routers.glances.tls=true - traefik.http.services.glances.loadbalancer.server.port=61208 + - traefik.http.routers.glances.middlewares=glancesRedir,glancesPStrip + - traefik.http.middlewares.glancesPStrip.stripprefix.prefixes=${PATH_GLANCES} + - traefik.http.middlewares.glancesRedir.redirectregex.regex=^(.*)${PATH_GLANCES}$$ + - traefik.http.middlewares.glancesRedir.redirectregex.replacement=$${1}${PATH_GLANCES}/ volumes: glances_data: