Make BASE_URL conditional on exposure

This commit is contained in:
Seth For Privacy 2022-09-09 16:36:33 -04:00 committed by GitHub
parent 66a17a1051
commit 390effa727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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