From dba9e19c6ca63bf7d40aa81e1f9a1135f07bb38b Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 18:50:04 +0000 Subject: [PATCH] Update client/nginx.conf --- client/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/nginx.conf b/client/nginx.conf index 57475d3..1a325af 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -2,26 +2,26 @@ server { listen 80; server_name _; - # Le build Angular est dans ce dossier - root /usr/share/nginx/html/gameovergne/browser; + # Le build Angular est dans /usr/share/nginx/html/browser + root /usr/share/nginx/html/browser; index index.html; # === Angular SPA === - # Traefik a déjà supprimé /gameovergne, donc ici on sert sur / + # Traefik a déjà supprimé /gameovergne, donc ici on sert tout sur / location / { try_files $uri $uri/ /index.html; } # === Proxy PrestaShop === - # Côté Angular, tu appelles /gameovergne/ps/... - # Traefik strippe /gameovergne -> Nginx reçoit /ps/... + # Côté Angular tu appelles : /gameovergne/ps/... + # Traefik strip /gameovergne -> Nginx voit /ps/... location /ps/ { proxy_pass https://shop.gameovergne.fr/api/; # équivalent changeOrigin: true proxy_set_header Host shop.gameovergne.fr; - # Auth basic comme avant + # Auth basic comme dans ton ancien proxy.conf.json proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI="; proxy_ssl_server_name on;