From 9e350ec2b51b47910b37cdd4db00f5c8867ebd12 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 17:38:00 +0000 Subject: [PATCH] Update client/nginx.conf --- client/nginx.conf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/nginx.conf b/client/nginx.conf index c4f6773..42016aa 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -2,19 +2,18 @@ server { listen 80; server_name _; - # Racine du site dans le conteneur - root /usr/share/nginx/html; + # ⚠ Ici on pointe directement sur le dossier "browser" + root /usr/share/nginx/html/browser; index index.html; - # === App Angular servie à la racine du conteneur === - # Traefik enlève déjà /gameovergne, donc ici on est sur "/" + # === App Angular (SPA) servie à la racine du conteneur === + # Traefik enlève déjà /gameovergne, donc ici on voit "/" location / { - # SPA : toutes les routes Angular renvoient index.html try_files $uri $uri/ /index.html; } # === Proxy PrestaShop : /ps/* -> https://shop.gameovergne.fr/api/* === - # Côté navigateur, l'app appelle /gameovergne/ps/... + # Côté navigateur, ton code appelle /gameovergne/ps/... # Traefik strippe /gameovergne -> Nginx voit /ps/... location /ps/ { proxy_pass https://shop.gameovergne.fr/api/;