47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
server {
|
|
listen 80 http2;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ $uri.html /index.html;
|
|
}
|
|
location /marbas/ {
|
|
proxy_pass https://${MARBAS_URL}/;
|
|
proxy_http_version 1.1;
|
|
rewrite /marbas/(.*) /$1 break;
|
|
proxy_ssl_server_name on;
|
|
proxy_set_header Host "${MARBAS_URL}";
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header Accept-Encoding "";
|
|
sub_filter 'https://${MARBAS_URL}/' '/marbas/';
|
|
sub_filter 'http://${MARBAS_URL}/' '/marbas/';
|
|
sub_filter_once off;
|
|
sub_filter_types application/json;
|
|
}
|
|
location /pocketbase/ {
|
|
proxy_pass https://${POCKET_BASE_URL}/;
|
|
proxy_http_version 1.1;
|
|
rewrite /pocketbase/(.*) /$1 break;
|
|
proxy_ssl_server_name on;
|
|
proxy_set_header Host "${POCKET_BASE_URL}";
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
}
|
|
location /appraisal/ {
|
|
proxy_pass https://${EVEPRAISAL_URL}/;
|
|
proxy_http_version 1.1;
|
|
rewrite /appraisal/(.*) /$1 break;
|
|
proxy_ssl_server_name on;
|
|
proxy_set_header Host "${EVEPRAISAL_URL}";
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
}
|
|
location /esi/ {
|
|
proxy_pass https://esi.evetech.net/;
|
|
proxy_http_version 1.1;
|
|
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}";
|
|
}
|
|
} |