From 5ea362876a25da6dc772e93242ba6ae856887738 Mon Sep 17 00:00:00 2001 From: mathieu Date: Tue, 21 May 2024 08:17:45 +0200 Subject: [PATCH] chore:tls --- docker-compose.yml | 4 ++-- rules.yaml | 4 +--- traefik.yml | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cc29d26..ee69356 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,8 +34,8 @@ services: labels: labels: - traefik.http.routers.blog.rule=Host(`huguettes.freeboxos.fr`) && Path(`/whoami`) - - traefik.http.routers.blog.tls=true - - traefik.http.routers.blog.tls.certresolver=myresolver + #- traefik.http.routers.blog.tls=true + #- traefik.http.routers.blog.tls.certresolver=myresolver networks: web: diff --git a/rules.yaml b/rules.yaml index 981c73a..53edac9 100644 --- a/rules.yaml +++ b/rules.yaml @@ -3,8 +3,6 @@ http: router-dsm: rule: "Host(`huguettes.freeboxos.fr`) && PathRegexp(`(/nas|/photo|/file|/drive|/note)`)" service: "service-dsm" - tls: - certresolver: myresolver middlewares: - nas-replacepathregex services: @@ -19,4 +17,4 @@ http: nas-replacepathregex: replacepathregex: regex: "^/nas/(.*)" - replacement: "/$1" + replacement: "/$1" \ No newline at end of file diff --git a/traefik.yml b/traefik.yml index cac7eab..25635c7 100644 --- a/traefik.yml +++ b/traefik.yml @@ -15,6 +15,9 @@ entryPoints: websecure: address: ":443" + http: + tls: + certresolver: myresolver certificatesResolvers: myresolver: