From c36416bdb44dcd8e1a4939bafd206b8b4731bbf7 Mon Sep 17 00:00:00 2001 From: R3D347HR4Y Date: Fri, 19 Jun 2026 22:11:50 +0200 Subject: [PATCH] feat(deploy): add Nginx configuration for marketing product pages - 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. --- deploy/nginx/default.conf.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deploy/nginx/default.conf.template b/deploy/nginx/default.conf.template index c3a1483..b9ff30e 100644 --- a/deploy/nginx/default.conf.template +++ b/deploy/nginx/default.conf.template @@ -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;