fix domains redirections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user