Update client/nginx.conf
This commit is contained in:
@@ -2,23 +2,24 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
# Angular build
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# SPA Angular : toutes les routes -> index.html
|
# SPA : toutes les routes Angular -> index.html
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proxy vers Presta sous /ps
|
# === Proxy vers PrestaShop (équivalent /ps du proxy.conf.json) ===
|
||||||
location /ps/ {
|
location /ps/ {
|
||||||
# /ps/... -> https://shop.gameovergne.fr/api/...
|
# /ps/... -> https://shop.gameovergne.fr/api/...
|
||||||
proxy_pass https://shop.gameovergne.fr/api/;
|
proxy_pass https://shop.gameovergne.fr/api/;
|
||||||
|
|
||||||
# changeOrigin: true
|
# comme changeOrigin: true
|
||||||
proxy_set_header Host shop.gameovergne.fr;
|
proxy_set_header Host shop.gameovergne.fr;
|
||||||
|
|
||||||
# Header Authorization (clé Presta) – stockée côté serveur uniquement
|
# Header Authorization du proxy.conf.json Angular
|
||||||
proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI=";
|
proxy_set_header Authorization "Basic MkFRUEcxM01KOFgxMTdVNkZKNU5HSFBTOTNIRTM0QUI=";
|
||||||
|
|
||||||
# HTTPS correct (SNI)
|
# HTTPS correct (SNI)
|
||||||
|
|||||||
Reference in New Issue
Block a user