Files
gemory/nginx.conf
2023-09-16 16:25:57 +02:00

31 lines
969 B
Nginx Configuration File

server {
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ $uri.html /index.html;
}
location /api/ {
proxy_pass https://api.eveal.shendai.rip/;
rewrite /api/(.*) /$1 break;
proxy_ssl_server_name on;
proxy_set_header Host "api.eveal.shendai.rip";
proxy_set_header X-Forwarded-Proto https;
}
location /appraisal/ {
proxy_pass https://appraise.imperium.nexus/;
rewrite /appraisal/(.*) /$1 break;
proxy_ssl_server_name on;
proxy_set_header Host "appraise.imperium.nexus";
proxy_set_header X-Forwarded-Proto https;
}
location /esi/ {
proxy_pass https://esi.evetech.net/;
rewrite /esi/(.*) /latest/$1 break;
proxy_ssl_server_name on;
proxy_set_header Host "esi.evetech.net";
proxy_set_header X-Forwarded-Proto https;
proxy_set_header User-Agent ${ESI_USER_AGENT};
}
}