path prefix glances
This commit is contained in:
parent
86cdf4f626
commit
afcecdb850
2 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue