Le déploiement recommandé place Nginx en frontal sur les ports 80 et 443. Le portail et l’API restent liés à l’interface locale du serveur ; PostgreSQL n’est jamais exposé à Internet.

Topologie

01Internetedi.ma : 443
02NginxTLS et reverse proxy
03Next.js127.0.0.1:3000
04Spring Boot127.0.0.1:8080
05PostgreSQL127.0.0.1:5432

Contrôles après livraison

bash
sudo systemctl status mystix-backend mystix-frontend nginx
curl -fsS http://127.0.0.1:8080/actuator/health
curl -I http://127.0.0.1:3000/fr
curl -I https://edi.ma