Update client/nginx.conf
This commit is contained in:
@@ -2,21 +2,24 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# Build Angular copié par le Dockerfile
|
# Racine du site dans le conteneur
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# SPA Angular : toutes les routes renvoient index.html
|
# === App Angular servie sous /gameovergne/ ===
|
||||||
location / {
|
location /gameovergne/ {
|
||||||
try_files $uri $uri/ /index.html;
|
# SPA : toutes les routes Angular renvoient index.html
|
||||||
|
try_files $uri $uri/ /gameovergne/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proxy vers Presta comme ton proxy.conf Angular en dev
|
# === Proxy PrestaShop : /gameovergne/ps/* -> https://shop.gameovergne.fr/api/* ===
|
||||||
location /ps/ {
|
location /gameovergne/ps/ {
|
||||||
# /ps/... -> https://shop.gameovergne.fr/api/...
|
|
||||||
proxy_pass https://shop.gameovergne.fr/api/;
|
proxy_pass https://shop.gameovergne.fr/api/;
|
||||||
|
|
||||||
|
# "changeOrigin: true"
|
||||||
proxy_set_header Host shop.gameovergne.fr;
|
proxy_set_header Host shop.gameovergne.fr;
|
||||||
|
|
||||||
|
# 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