proxy through ngnix

This commit is contained in:
2023-09-16 16:04:30 +02:00
parent 6580924bbe
commit 78c07c7806
6 changed files with 31 additions and 21 deletions

View File

@@ -5,4 +5,26 @@ server {
location / {
try_files $uri $uri/ $uri.html /index.html;
}
location /api/ {
rewrite /api/(.*) /$1 break;
proxy_pass https://api.eveal.shendai.rip/;
proxy_ssl_server_name on;
proxy_set_header Host "api.eveal.shendai.rip";
proxy_set_header X-Forwarded-Proto https;
}
location /appraisal/ {
rewrite /appraisal/(.*) /$1 break;
proxy_pass https://appraise.imperium.nexus/;
proxy_ssl_server_name on;
proxy_set_header Host "appraise.imperium.nexus";
proxy_set_header X-Forwarded-Proto https;
}
location /esi/ {
rewrite /esi/(.*) /latest/$1 break;
proxy_pass https://esi.evetech.net/;
proxy_ssl_server_name on;
proxy_set_header Host "esi.evetech.net";
proxy_set_header X-Forwarded-Proto https;
}
}