From a61ba0df6fdc4a9eb5dbedf90346f05deabcc676 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 28 Jun 2020 13:08:29 +0200 Subject: [PATCH] https redirection headache... to be continued --- traefik/docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index e581698..b68f2a0 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -15,9 +15,9 @@ services: - --certificatesresolvers.letsencrypt.acme.tlschallenge=true labels: # global redirect to https - - traefik.http.routers.redirs.rule=hostregexp(`{host:.+}`) - - traefik.http.routers.redirs.entrypoints=web - - traefik.http.routers.redirs.middlewares=redirect-to-https + - traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`) + - traefik.http.routers.http-catchall.entrypoints=web + - traefik.http.routers.http-catchall.middlewares=redirect-to-https # middleware redirect - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https ports: @@ -29,3 +29,4 @@ services: restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock:ro + - ./acme.json:/acme.json