Update client/nginx.conf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user