diff --git a/dev/forward-to-legacy-nginx.yaml b/dev/forward-to-legacy-nginx.yaml index 14ab53c..b8a1d9b 100644 --- a/dev/forward-to-legacy-nginx.yaml +++ b/dev/forward-to-legacy-nginx.yaml @@ -27,7 +27,7 @@ tcp: service: nginx-legacy-service-secure tls: passthrough: true - priority: 1 + priority: 10 entryPoints: - "https" @@ -45,7 +45,7 @@ http: entryPoints: - "web" service: "acme-http@internal" # This is the internal service name - priority: 10001 # High priority to ensure it wins + priority: 1000 # High priority to ensure it wins # 2. THE HTTP CATCH-ALL (Sends other ACME and HTTP to Nginx) nginx-legacy-router: @@ -53,7 +53,7 @@ http: service: nginx-legacy-service entryPoints: - "web" - priority: 100 + priority: 10 services: nginx-legacy-service: diff --git a/docker-compose.yaml b/docker-compose.yaml index 6547274..30fc662 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,5 @@ services: - traefik5: + traefik6: image: "traefik:v3.6@sha256:67622638cd88dbfcfba40159bc652ecf0aea0e032f8a3c7e3134ae7c037b9910" restart: unless-stopped security_opt: @@ -38,8 +38,9 @@ services: labels: - "env=${ENV}" - "traefik.enable=true" - - "traefik.http.routers.whoami.priority=10000" + - "traefik.http.routers.whoami.priority=100" - "traefik.http.routers.whoami.rule=Host(`test-whoami.${DOMAIN}`)" + - "traefik.http.routers.https.priority=100" - "traefik.http.routers.https.rule=Host(`test-whoami.${DOMAIN}`)" - "traefik.http.routers.whoami.entrypoints=web" - traefik.http.routers.https.entrypoints=https