Fix traefik config

This commit is contained in:
Martin Peeters 2022-06-22 00:16:08 +02:00
parent 693edad1ae
commit b836c9a425
No known key found for this signature in database
GPG Key ID: AEB2A9A8669F091C
2 changed files with 23 additions and 12 deletions

View File

@ -34,11 +34,20 @@ services:
- node.hostname == pfwb-ubuged5
labels:
- "traefik.enable=true"
- "traefik.http.routers.pfwb-ged.rule=Host(`ged.pfwb.be`)"
- "traefik.http.routers.pfwb-ged.entrypoints=web"
- "traefik.http.services.pfwb-ged.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged.middlewares=add-pfwb-ged-vhost"
- "traefik.http.middlewares.add-pfwb-ged-vhost.addprefix.prefix=/VirtualHostBase/https/ged.pfwb.be:443/pfwbged/VirtualHostRoot"
- "traefik.http.routers.pfwb-ged-prod-login.rule=Host(`ged.pfwb.be`) && Method(`GET`) && Path (`/`)"
- "traefik.http.routers.pfwb-ged-prod-login.priority=2"
- "traefik.http.routers.pfwb-ged-prod-login.entrypoints=web"
- "traefik.http.routers.pfwb-ged-prod-login.service=pfwb-ged-prod-login"
- "traefik.http.services.pfwb-ged-prod-login.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-prod-login.middlewares=add-pfwb-ged-prod-login-vhost"
- "traefik.http.middlewares.add-pfwb-ged-prod-login-vhost.addprefix.prefix=/VirtualHostBase/https/ged.pfwb.be:443/pfwbged/VirtualHostRoot/dashboard"
- "traefik.http.routers.pfwb-ged-prod.rule=Host(`ged.pfwb.be`)"
- "traefik.http.routers.pfwb-ged-prod.priority=1"
- "traefik.http.routers.pfwb-ged-prod.entrypoints=web"
- "traefik.http.routers.pfwb-ged-prod.service=pfwb-ged-prod"
- "traefik.http.services.pfwb-ged-prod.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-prod.middlewares=add-pfwb-ged-prod-vhost"
- "traefik.http.middlewares.add-pfwb-ged-prod-vhost.addprefix.prefix=/VirtualHostBase/https/ged.pfwb.be:443/pfwbged/VirtualHostRoot"
ports:
- 8080
networks:

View File

@ -34,15 +34,17 @@ services:
- node.hostname == pfwb-ubuged6
labels:
- "traefik.enable=true"
#- "traefik.http.routers.pfwb-ged-staging-login.rule=Host(`ged-staging.pfwb.be`) && Method(`Post`) && Path (`/`)"
#- "traefik.http.routers.pfwb-ged-staging-login.priority=1"
#- "traefik.http.routers.pfwb-ged-staging-login.entrypoints=web"
#- "traefik.http.services.pfwb-ged-staging-login.loadbalancer.server.port=8080"
#- "traefik.http.routers.pfwb-ged-staging-login.middlewares=add-pfwb-ged-staging-login-vhost"
#- "traefik.http.middlewares.add-pfwb-ged-staging-login-vhost.addprefix.prefix=/VirtualHostBase/https/ged-staging.pfwb.be:443/pfwbged/VirtualHostRoot/dashboard"
- "traefik.http.routers.pfwb-ged-staging-login.rule=Host(`ged-staging.pfwb.be`) && Method(`GET`) && Path (`/`)"
- "traefik.http.routers.pfwb-ged-staging-login.priority=2"
- "traefik.http.routers.pfwb-ged-staging-login.entrypoints=web"
- "traefik.http.routers.pfwb-ged-staging-login.service=pfwb-ged-staging-login"
- "traefik.http.services.pfwb-ged-staging-login.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-staging-login.middlewares=add-pfwb-ged-staging-login-vhost"
- "traefik.http.middlewares.add-pfwb-ged-staging-login-vhost.addprefix.prefix=/VirtualHostBase/https/ged-staging.pfwb.be:443/pfwbged/VirtualHostRoot/dashboard"
- "traefik.http.routers.pfwb-ged-staging.rule=Host(`ged-staging.pfwb.be`)"
- "traefik.http.routers.pfwb-ged-staging.priority=2"
- "traefik.http.routers.pfwb-ged-staging.priority=1"
- "traefik.http.routers.pfwb-ged-staging.entrypoints=web"
- "traefik.http.routers.pfwb-ged-staging.service=pfwb-ged-staging"
- "traefik.http.services.pfwb-ged-staging.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-staging.middlewares=add-pfwb-ged-staging-vhost"
- "traefik.http.middlewares.add-pfwb-ged-staging-vhost.addprefix.prefix=/VirtualHostBase/https/ged-staging.pfwb.be:443/pfwbged/VirtualHostRoot"