Update client/nginx.conf

This commit is contained in:
2025-11-28 17:26:03 +00:00
parent 8e5819db38
commit c9d8186f21

View File

@@ -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"