Update client/nginx.conf

This commit is contained in:
2025-11-28 17:03:15 +00:00
parent bfa90c5b31
commit 82de928f3e

View File

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