mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-04-25 17:00:40 +02:00
path prefix glances
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@ LETSENCRYPT_EMAIL=root@localhost.localdomain
|
|||||||
# sites
|
# sites
|
||||||
DOMAIN=localhost.localdomain
|
DOMAIN=localhost.localdomain
|
||||||
HOST_WWW=www
|
HOST_WWW=www
|
||||||
PATH_PORTAINER=/console
|
PATH_PORTAINER=/portainer
|
||||||
|
PATH_GLANCES=/glances
|
||||||
HOST_TRAEFIK=traefik
|
HOST_TRAEFIK=traefik
|
||||||
HOST_GLANCES=glances
|
HOST_GLANCES=glances
|
||||||
HOST_PORTAINER=portainer
|
HOST_PORTAINER=portainer
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ services:
|
|||||||
- traefik.http.routers.glances.entrypoints=websecure
|
- traefik.http.routers.glances.entrypoints=websecure
|
||||||
- traefik.http.routers.glances.tls=true
|
- traefik.http.routers.glances.tls=true
|
||||||
- traefik.http.services.glances.loadbalancer.server.port=61208
|
- 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:
|
volumes:
|
||||||
glances_data:
|
glances_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user