From 25357d79deb702d0c589d3ed10bbceae0950f27f Mon Sep 17 00:00:00 2001 From: Mathieu Date: Fri, 11 Oct 2024 14:14:47 +0200 Subject: [PATCH] fix: make config compatible with Traefik v3 --- templates/geokrety_legacy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/geokrety_legacy.yml b/templates/geokrety_legacy.yml index 4b9fea2..fde41dc 100644 --- a/templates/geokrety_legacy.yml +++ b/templates/geokrety_legacy.yml @@ -215,7 +215,7 @@ x-labels-website: &labels-website traefik.http.middlewares.geokrety-{{ item }}-redirectregex.redirectregex.regex: "http://www.{{ params.website.uri[0] }}([/](.*))*" traefik.http.middlewares.geokrety-{{ item }}-redirectregex.redirectregex.replacement: "https://{{ params.website.uri[0] }}$${1}" traefik.http.routers.geokrety-{{ item }}-nginx.priority: 5 - traefik.http.routers.geokrety-{{ item }}-nginx.rule: "Host(`{{ params.website.uri | join('`,`') }}`,`www.{{ params.website.uri[0] }}`)" + traefik.http.routers.geokrety-{{ item }}-nginx.rule: "Host(`{{ params.website.uri | join('`) || Host(`') }}`) || Host(`www.{{ params.website.uri[0] }}`)" traefik.http.routers.geokrety-{{ item }}-nginx.middlewares: X-Forwarded-Https@file, geokrety-{{ item }}-redirectregex traefik.http.services.geokrety-{{ item }}-nginx.loadbalancer.passhostheader: "true" traefik.http.services.geokrety-{{ item }}-nginx.loadbalancer.server.port: 80