feat(deploy): add Nginx configuration for marketing product pages
Some checks are pending
CI / Go tests (push) Waiting to run
CI / Integration tests (push) Waiting to run
CI / DB migrations (push) Waiting to run

- Introduced a new location block in the Nginx configuration to handle requests for marketing product pages under the /suite path.
- Configured proxy settings to forward requests to the specified MAIL_FRONTEND_UPSTREAM, ensuring proper routing for the frontend application.
- Updated resolver and proxy headers to enhance request handling and maintain compatibility with existing services.
This commit is contained in:
R3D347HR4Y 2026-06-19 22:11:50 +02:00
parent e6a04fdd31
commit c36416bdb4

View File

@ -948,6 +948,20 @@ server {
# Ulti Suite frontend (mail + drive + contacts + agenda + account + settings) — dev: pnpm dev on host (MAIL_FRONTEND_UPSTREAM=host.docker.internal:3004)
# Prod: set MAIL_FRONTEND_UPSTREAM=suite-frontend:3000
# Pages produit marketing (/suite/ultimail, /suite/ultidrive, …) — frontend Next.
location ^~ /suite {
resolver 127.0.0.11 valid=10s ipv6=off;
set $mail_upstream ${MAIL_FRONTEND_UPSTREAM};
proxy_pass http://$mail_upstream;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto ${FORWARDED_PROTO};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
# Démos publiques de la landing (zéro rétention) — frontend Next.
location ^~ /demo {
resolver 127.0.0.11 valid=10s ipv6=off;