From b8438bae64e36a926d8c9b95516d90fd8b757f0b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste DONNETTE Date: Mon, 4 Nov 2024 10:31:05 +0100 Subject: [PATCH] feat(traefik): add optional TLS cert resolver for API and frontend --- docker-compose.new.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.new.yml b/docker-compose.new.yml index 25880bb..b34b1d1 100644 --- a/docker-compose.new.yml +++ b/docker-compose.new.yml @@ -73,6 +73,8 @@ services: - traefik_config:/traefik labels: - "traefik.http.routers.traefik.rule=Host(`${LAGO_DOMAIN:-localhost}`)" + # SSL + # - "traefik.http.routers.api.entrypoints=websecure" - "traefik.http.routers.traefik.entrypoints=web" - "traefik.http.routers.traefik.tls.certresolver=lagoresolver" - "traefik.http.services.traefik.loadbalancer.server.port=8080" @@ -100,6 +102,7 @@ services: retries: 5 labels: # SSL + # - "traefik.http.routers.api.tls.certresolver=lagoresolver" # - "traefik.http.routers.api.entrypoints=websecure" - "traefik.http.routers.api.entrypoints=web" - "traefik.http.routers.api.priority=100" @@ -128,6 +131,9 @@ services: labels: - "traefik.http.routers.front.priority=50" - "traefik.enable=true" + # SSL + # - "traefik.http.routers.api.tls.certresolver=lagoresolver" + # - "traefik.http.routers.api.entrypoints=websecure" - "traefik.http.routers.front.entrypoints=web" - "traefik.http.routers.front.rule=Host(`${LAGO_DOMAIN:-localhost}`) && PathPrefix(`/`)" - "traefik.http.services.front.loadbalancer.server.port=80"