From 390effa727fcbd9ebd9ac9224ecab4f20193b768 Mon Sep 17 00:00:00 2001 From: Seth For Privacy Date: Fri, 9 Sep 2022 16:36:33 -0400 Subject: [PATCH] Make BASE_URL conditional on exposure --- apps/send/docker-compose.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/send/docker-compose.yml b/apps/send/docker-compose.yml index d398e757..931fe026 100644 --- a/apps/send/docker-compose.yml +++ b/apps/send/docker-compose.yml @@ -15,9 +15,7 @@ services: environment: - NODE_ENV=production # Networking - - VIRTUAL_HOST=${APP_DOMAIN} - - VIRTUAL_PORT=443 - - BASE_URL=https://${APP_DOMAIN} + - BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN} # Redis - REDIS_HOST=send-redis # Storage Limit @@ -29,6 +27,7 @@ services: traefik.http.routers.send.service: send traefik.http.routers.send.tls.certresolver: myresolver traefik.http.services.send.loadbalancer.server.port: 1443 + send-redis: image: redis:alpine container_name: send-redis