From c9d8186f21ee42ddf78e0d5aa57d9e4db3b38759 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 17:26:03 +0000 Subject: [PATCH] Update client/nginx.conf --- client/nginx.conf | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/nginx.conf b/client/nginx.conf index 4e5b68d..c4f6773 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -6,14 +6,17 @@ server { root /usr/share/nginx/html; index index.html; - # === App Angular servie sous /gameovergne/ === - location /gameovergne/ { + # === App Angular servie à la racine du conteneur === + # Traefik enlève déjà /gameovergne, donc ici on est sur "/" + location / { # SPA : toutes les routes Angular renvoient index.html - try_files $uri $uri/ /gameovergne/index.html; + try_files $uri $uri/ /index.html; } - # === Proxy PrestaShop : /gameovergne/ps/* -> https://shop.gameovergne.fr/api/* === - location /gameovergne/ps/ { + # === Proxy PrestaShop : /ps/* -> https://shop.gameovergne.fr/api/* === + # Côté navigateur, l'app appelle /gameovergne/ps/... + # Traefik strippe /gameovergne -> Nginx voit /ps/... + location /ps/ { proxy_pass https://shop.gameovergne.fr/api/; # "changeOrigin: true"