From 939bb6159c57d7fb17002479cb872de5411bcdec Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 16:30:00 +0000 Subject: [PATCH] Update client/nginx.conf --- client/nginx.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/nginx.conf b/client/nginx.conf index ad04e53..c42c461 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -2,23 +2,24 @@ server { listen 80; server_name _; + # Angular build root /usr/share/nginx/html; index index.html; - # SPA Angular : toutes les routes -> index.html + # SPA : toutes les routes Angular -> index.html location / { try_files $uri $uri/ /index.html; } - # Proxy vers Presta sous /ps + # === Proxy vers PrestaShop (équivalent /ps du proxy.conf.json) === location /ps/ { # /ps/... -> https://shop.gameovergne.fr/api/... proxy_pass https://shop.gameovergne.fr/api/; - # changeOrigin: true + # comme changeOrigin: true proxy_set_header Host shop.gameovergne.fr; - # Header Authorization (clé Presta) – stockée côté serveur uniquement + # Header Authorization du proxy.conf.json Angular proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI="; # HTTPS correct (SNI)