From 82de928f3e4a8d2b2ddffe616546d3f52fc642f7 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 17:03:15 +0000 Subject: [PATCH] Update client/nginx.conf --- client/nginx.conf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/nginx.conf b/client/nginx.conf index c42c461..6454a89 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -2,27 +2,23 @@ server { listen 80; server_name _; - # Angular build + # Build Angular copié par le Dockerfile root /usr/share/nginx/html; index index.html; - # SPA : toutes les routes Angular -> index.html + # SPA Angular : toutes les routes renvoient index.html location / { try_files $uri $uri/ /index.html; } - # === Proxy vers PrestaShop (équivalent /ps du proxy.conf.json) === + # Proxy vers Presta comme ton proxy.conf Angular en dev location /ps/ { # /ps/... -> https://shop.gameovergne.fr/api/... proxy_pass https://shop.gameovergne.fr/api/; - # comme changeOrigin: true proxy_set_header Host shop.gameovergne.fr; - - # Header Authorization du proxy.conf.json Angular proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI="; - # HTTPS correct (SNI) proxy_ssl_server_name on; proxy_set_header X-Real-IP $remote_addr;