Update client/nginx.conf
This commit is contained in:
@@ -2,26 +2,26 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# Le build Angular est dans ce dossier
|
# Le build Angular est dans /usr/share/nginx/html/browser
|
||||||
root /usr/share/nginx/html/gameovergne/browser;
|
root /usr/share/nginx/html/browser;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# === Angular SPA ===
|
# === Angular SPA ===
|
||||||
# Traefik a déjà supprimé /gameovergne, donc ici on sert sur /
|
# Traefik a déjà supprimé /gameovergne, donc ici on sert tout sur /
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# === Proxy PrestaShop ===
|
# === Proxy PrestaShop ===
|
||||||
# Côté Angular, tu appelles /gameovergne/ps/...
|
# Côté Angular tu appelles : /gameovergne/ps/...
|
||||||
# Traefik strippe /gameovergne -> Nginx reçoit /ps/...
|
# Traefik strip /gameovergne -> Nginx voit /ps/...
|
||||||
location /ps/ {
|
location /ps/ {
|
||||||
proxy_pass https://shop.gameovergne.fr/api/;
|
proxy_pass https://shop.gameovergne.fr/api/;
|
||||||
|
|
||||||
# équivalent changeOrigin: true
|
# équivalent changeOrigin: true
|
||||||
proxy_set_header Host shop.gameovergne.fr;
|
proxy_set_header Host shop.gameovergne.fr;
|
||||||
|
|
||||||
# Auth basic comme avant
|
# Auth basic comme dans ton ancien proxy.conf.json
|
||||||
proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI=";
|
proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI=";
|
||||||
|
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
|
|||||||
Reference in New Issue
Block a user