32 lines
869 B
Nginx Configuration File
32 lines
869 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# Important : racine définie au niveau du dossier "browser"
|
|
root /usr/share/nginx/html/gameovergne/browser;
|
|
index index.html;
|
|
|
|
# Accès à /gameovergne/
|
|
location /gameovergne/ {
|
|
alias /usr/share/nginx/html/gameovergne/browser/;
|
|
try_files $uri $uri/ index.html;
|
|
}
|
|
|
|
# Accès direct à /gameovergne (sans slash)
|
|
location = /gameovergne {
|
|
return 301 /gameovergne/;
|
|
}
|
|
|
|
# Presta via /gameovergne/ps/
|
|
location /gameovergne/ps/ {
|
|
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;
|
|
}
|
|
|
|
# Fallback général (sécurité)
|
|
location / {
|
|
return 301 /gameovergne/;
|
|
}
|
|
} |