From adf4eb1ffb22b2ec36b59f3c4b80e3d2cee33b63 Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 2 Dec 2021 23:43:36 +0800 Subject: [PATCH] fix: add certresolver --- gitea/docker-compose.yml | 1 + portainer/docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index a79da26..289991d 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -11,6 +11,7 @@ services: - "traefik.http.routers.gitea.rule=Host(`git.esin.io`)" - "traefik.http.routers.gitea.entrypoints=websecure" - "traefik.http.routers.gitea.tls=true" + - "traefik.http.routers.gitea.tls.certresolver=letsencrypt" - "traefik.http.routers.gitea.middlewares=gitea-mw" - "traefik.http.middlewares.gitea-mw.compress=true" - "traefik.http.middlewares.gitea-mw.compress.excludedcontenttypes=text/event-stream" diff --git a/portainer/docker-compose.yml b/portainer/docker-compose.yml index 662a03d..cb4dbfe 100644 --- a/portainer/docker-compose.yml +++ b/portainer/docker-compose.yml @@ -11,6 +11,7 @@ services: - "traefik.http.routers.portainer.rule=Host(`portainer.esin.io`)" - "traefik.http.routers.portainer.entrypoints=websecure" - "traefik.http.routers.portainer.tls=true" + - "traefik.http.routers.portainer.tls.certresolver=letsencrypt" - "traefik.http.routers.portainer.middlewares=portainer-mw" - "traefik.http.middlewares.portainer-mw.compress=true" - "traefik.http.middlewares.portainer-mw.compress.excludedcontenttypes=text/event-stream"