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