mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 17:15:08 +00:00
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:
parent
c90e787b6f
commit
a71ccfe8af
3 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue