From fa886aaac4708d2e1a245c6f8938bb4983a645b5 Mon Sep 17 00:00:00 2001 From: mathieu Date: Mon, 20 May 2024 13:39:50 +0200 Subject: [PATCH] choretls --- docker-compose.yml | 8 ++++++-- traefik.yml | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9e942ca..809d250 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,8 @@ services: - default ports: # The HTTP port - - "8188:80" + - "1080:80" + - "1443:443" # The Web UI (enabled by --api.insecure=true) - "8088:8080" volumes: @@ -22,7 +23,10 @@ services: # A container that exposes an API to show its IP address image: traefik/whoami labels: - - "traefik.http.routers.whoami.rule=Path(`/whoami`)" + 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 networks: web: diff --git a/traefik.yml b/traefik.yml index 2e32114..cff04b7 100644 --- a/traefik.yml +++ b/traefik.yml @@ -13,8 +13,18 @@ entryPoints: # scheme: https # permanent: true -# websecure: -# address: ":443" + websecure: + address: ":443" + +certificatesResolvers: + myresolver: + acme: + email: lecoiffiermathieu@gmail.com + storage: acme.json + httpChallenge: + # used during the challenge + entryPoint: web + log: level: DEBUG