31 lines
975 B
Nginx Configuration File
31 lines
975 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# Racine du site dans le conteneur
|
|
root /usr/share/nginx/html;
|
|
index 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 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;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
} |