Stage 1 to support multiple domains

This commit is contained in:
Cassowary 2024-05-29 11:38:50 -07:00
parent f6f4066532
commit 5e941cb055
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
TYPE=mailman3
DOMAIN=mailman3.example.com
#EXTRA_DOMAINS=', `www.mailman3.example.com`'
LETS_ENCRYPT_ENV=production
SERVE_FROM_DOMAIN=${DOMAIN}

View File

@ -98,7 +98,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+1.21.1"