From bf317b00ac37ca01ebc2557c40a41fdab91f524c Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 17 Sep 2020 00:30:22 +0200 Subject: [PATCH] Hard-code ch.* routing for now --- compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index ae0ef39..0ee051d 100644 --- a/compose.yml +++ b/compose.yml @@ -26,7 +26,10 @@ services: - "traefik.docker.network=proxy" - "traefik.http.routers.${STACK_NAME}.tls=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" - - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.${STACK_NAME}.rule=(Host(`ch.${DOMAIN}`, `${DOMAIN}`)" + # 3wc: this rule works for routing, but not for generating certificates + # see https://git.autonomic.zone/compose-stacks/planning/issues/14 + #- "traefik.http.routers.${STACK_NAME}.rule=HostRegexp(`{subdomain:.+}.${DOMAIN}`, `${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"