Skip to content

Commit 04e7c23

Browse files
authored
Fix traefik www capture router (#1029)
j2cli that we use preserves quotes around variable value being substituted kolypto/j2cli#77. This leads to a wrong label syntax (e.g. label="asda" instead of label=asda) Related PR(s): * #1013 Related Issue(s): * closes #1028
1 parent f2143c9 commit 04e7c23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/traefik/docker-compose.yml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ services:
105105
# via https://community.traefik.io/t/v2-2-8-global-redirect-www-to-non-www-with-http-to-https/7428
106106
# see also: https://community.traefik.io/t/get-a-valid-ssl-certificate-for-www-domains-via-traefik-and-lets-encrypt/2023
107107
# Global redirection: https (www.) to https
108-
- traefik.http.routers.www-catchall.rule={{ DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFIK_RULE.strip("\"") }}
108+
# why .strip("\"'") ? --> https://github.com/kolypto/j2cli/issues/77
109+
- traefik.http.routers.www-catchall.rule={{ DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFIK_RULE.strip("\"'") }}
109110
- traefik.http.routers.www-catchall.priority=100000
110111
- traefik.http.routers.www-catchall.entrypoints=https,http
111112
- traefik.http.routers.www-catchall.tls=true

0 commit comments

Comments
 (0)