Aller au contenu

Réseau & Domaines

Sous-domaines

Sous-domaine Service Port interne
perfshop.tests-performance.fr perfshop-frontend 8090
perfshop-api.tests-performance.fr perfshop-app 8080
perfshop-monitoring.tests-performance.fr perfshop-monitoring 3001
perfshop-grafana.tests-performance.fr grafana 3002
perfshop-doc.tests-performance.fr docs 8085

Reverse proxy

Un Nginx externe (hors docker-compose PerfShop) gère le routage des sous-domaines vers les ports des containers. Chaque sous-domaine est un proxy_pass vers localhost:PORT.

CORS

Le backend Spring Boot autorise les requêtes cross-origin depuis :

  • https://perfshop.tests-performance.fr
  • https://perfshop-monitoring.tests-performance.fr

Le monitoring Node.js autorise toutes les origines (*) pour les endpoints /api/chaos/client-metrics (métriques navigateur).