fix: set traefik Host in backticks

This prevents "Error while parsing rule Host(sub.sub.example.com), error: *ast.BinaryExpr is not supported"
This commit is contained in:
Rafael Kraut 2022-09-29 21:40:09 +02:00
parent c90e787b6f
commit a71ccfe8af
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ services:
- traefik.http.services.${ROUTER?ROUTER not set}.loadbalancer.server.port=2016
- traefik.http.routers.${ROUTER}.service=${ROUTER}
- traefik.http.routers.${ROUTER}.entrypoints=http
- traefik.http.routers.${ROUTER}.rule=Host(${SITES?SITES not set})
- traefik.http.routers.${ROUTER}.rule=Host(`${SITES?SITES not set}`)
- traefik.http.middlewares.${ROUTER}.headers.customrequestheaders.Host=${BASE_SITE?BASE_SITE not set}
- traefik.http.routers.${ROUTER}.middlewares=${ROUTER}
networks:

View file

@ -5,7 +5,7 @@ services:
- traefik.http.routers.${ROUTER}-http.middlewares=https-redirect
# ${ROUTER}-https the actual router using HTTPS
# Uses the environment variable SITES
- traefik.http.routers.${ROUTER}-https.rule=Host(${SITES?SITES not set})
- traefik.http.routers.${ROUTER}-https.rule=Host(`${SITES?SITES not set}`)
- traefik.http.routers.${ROUTER}-https.entrypoints=https
- traefik.http.routers.${ROUTER}-https.tls=true
# Use the service ${ROUTER} with the frontend

View file

@ -9,7 +9,7 @@ services:
- traefik.http.services.${ROUTER?ROUTER not set}.loadbalancer.server.port=8080
- traefik.http.routers.${ROUTER}-http.service=${ROUTER}
- traefik.http.routers.${ROUTER}-http.entrypoints=http
- traefik.http.routers.${ROUTER}-http.rule=Host(${SITES?SITES not set})
- traefik.http.routers.${ROUTER}-http.rule=Host(`${SITES?SITES not set}`)
configurator:
networks:
- bench-network