diff --git a/client/nginx.conf b/client/nginx.conf index 1a325af..9f2240f 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -2,26 +2,23 @@ server { listen 80; server_name _; - # Le build Angular est dans /usr/share/nginx/html/browser + # Force DNS en IPv4 (sinon Nginx tente IPv6 et échoue) + resolver 1.1.1.1 ipv6=off; + + # Build Angular root /usr/share/nginx/html/browser; index index.html; - # === Angular SPA === - # Traefik a déjà supprimé /gameovergne, donc ici on sert tout sur / + # Angular SPA location / { try_files $uri $uri/ /index.html; } - # === Proxy PrestaShop === - # Côté Angular tu appelles : /gameovergne/ps/... - # Traefik strip /gameovergne -> Nginx voit /ps/... + # Proxy Presta (Traefik transforme /gameovergne/ps -> /ps) location /ps/ { proxy_pass https://shop.gameovergne.fr/api/; - # équivalent changeOrigin: true proxy_set_header Host shop.gameovergne.fr; - - # Auth basic comme dans ton ancien proxy.conf.json proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI="; proxy_ssl_server_name on;