Files
gameovergne-app/client/nginx.conf

28 lines
827 B
Nginx Configuration File

server {
listen 80;
server_name _;
# Build Angular copié par le Dockerfile
root /usr/share/nginx/html;
index index.html;
# SPA Angular : toutes les routes renvoient index.html
location / {
try_files $uri $uri/ /index.html;
}
# Proxy vers Presta comme ton proxy.conf Angular en dev
location /ps/ {
# /ps/... -> https://shop.gameovergne.fr/api/...
proxy_pass https://shop.gameovergne.fr/api/;
proxy_set_header Host shop.gameovergne.fr;
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;
}
}