From ffd3958d4ea095771a081a0b61876bdeca95b777 Mon Sep 17 00:00:00 2001 From: TabascoEye Date: Mon, 19 Apr 2021 11:03:31 +0200 Subject: [PATCH] fix Letsencrypt certificate not getting created --- contrib/docker/docker-compose.prod.singledomain.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/docker/docker-compose.prod.singledomain.yaml b/contrib/docker/docker-compose.prod.singledomain.yaml index 75c24012..1d518b83 100644 --- a/contrib/docker/docker-compose.prod.singledomain.yaml +++ b/contrib/docker/docker-compose.prod.singledomain.yaml @@ -14,6 +14,8 @@ services: - --certificatesresolvers.myhttpchallenge.acme.tlschallenge=true - --certificatesresolvers.myhttpchallenge.acme.email=$ACME_EMAIL - --certificatesresolvers.myhttpchallenge.acme.storage=/acme/acme.json +# uncomment for debugging traefik +# - --log.level=DEBUG ports: - "80:80" - "443:443" @@ -52,7 +54,7 @@ services: TURN_USER: "$TURN_USER" MAX_PER_GROUP: "$MAX_PER_GROUP" labels: - - "traefik.http.routers.front.rule=PathPrefix(`/`)" + - "traefik.http.routers.front.rule=Host(`${BASE_DOMAIN}`) && PathPrefix(`/`)" - "traefik.http.routers.front.entryPoints=web,websecure" - "traefik.http.services.front.loadbalancer.server.port=8000" - "traefik.http.routers.front.tls=true" @@ -81,7 +83,7 @@ services: JITSI_ISS: $JITSI_ISS labels: - "traefik.http.middlewares.strip-pusher-prefix.stripprefix.prefixes=/pusher" - - "traefik.http.routers.pusher.rule=PathPrefix(`/pusher`)" + - "traefik.http.routers.pusher.rule=Host(`${BASE_DOMAIN}`) && PathPrefix(`/pusher`)" - "traefik.http.routers.pusher.middlewares=strip-pusher-prefix@docker" - "traefik.http.routers.pusher.entryPoints=web,websecure" - "traefik.http.services.pusher.loadbalancer.server.port=8080" @@ -103,7 +105,7 @@ services: MAX_PER_GROUP: $MAX_PER_GROUP labels: - "traefik.http.middlewares.strip-api-prefix.stripprefix.prefixes=/api" - - "traefik.http.routers.back.rule=PathPrefix(`/api`)" + - "traefik.http.routers.back.rule=Host(`${BASE_DOMAIN}`) && PathPrefix(`/api`)" - "traefik.http.routers.back.middlewares=strip-api-prefix@docker" - "traefik.http.routers.back.entryPoints=web,websecure" - "traefik.http.services.back.loadbalancer.server.port=8080" @@ -117,7 +119,7 @@ services: dockerfile: uploader/Dockerfile labels: - "traefik.http.middlewares.strip-uploader-prefix.stripprefix.prefixes=/uploader" - - "traefik.http.routers.uploader.rule=PathPrefix(`/uploader`)" + - "traefik.http.routers.uploader.rule=Host(`${BASE_DOMAIN}`) && PathPrefix(`/uploader`)" - "traefik.http.routers.uploader.middlewares=strip-uploader-prefix@docker" - "traefik.http.routers.uploader.entryPoints=web,websecure" - "traefik.http.services.uploader.loadbalancer.server.port=8080" @@ -133,7 +135,7 @@ services: - ../../maps:/var/www/html/ labels: - "traefik.http.middlewares.strip-maps-prefix.stripprefix.prefixes=/maps" - - "traefik.http.routers.maps.rule=PathPrefix(`/maps`)" + - "traefik.http.routers.maps.rule=Host(`${BASE_DOMAIN}`) && PathPrefix(`/maps`)" - "traefik.http.routers.maps.middlewares=strip-maps-prefix@docker" - "traefik.http.routers.maps.entryPoints=web,websecure" - "traefik.http.services.maps.loadbalancer.server.port=80"