fix domains redirections

This commit is contained in:
root
2026-05-15 12:44:12 -04:00
parent 0edd90732e
commit 942c0b282a
4 changed files with 17 additions and 10 deletions
+8 -2
View File
@@ -84,8 +84,14 @@ services:
restart: unless-stopped
labels:
- traefik.enable=true
# marketplace (port 3000) — owns both bare and www domains
- traefik.http.routers.marketplace.rule=Host(`rentaldrivego.ma`) || Host(`www.rentaldrivego.ma`)
# public site (port 3003) — owns both bare and www domains
- traefik.http.routers.public-site.rule=Host(`${PUBLIC_SITE_DOMAIN}`) || Host(`www.${PUBLIC_SITE_DOMAIN}`)
- traefik.http.routers.public-site.entrypoints=websecure
- traefik.http.routers.public-site.tls.certresolver=letsencrypt
- traefik.http.routers.public-site.service=public-site-svc
- traefik.http.services.public-site-svc.loadbalancer.server.port=3003
# marketplace (port 3000) — should use its own subdomain
- traefik.http.routers.marketplace.rule=Host(`${MARKETPLACE_DOMAIN}`)
- traefik.http.routers.marketplace.entrypoints=websecure
- traefik.http.routers.marketplace.tls.certresolver=letsencrypt
- traefik.http.routers.marketplace.service=marketplace-svc