server { root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ $uri.html /index.html; } location /api/ { proxy_pass https://${API_URL}/; rewrite /api/(.*) /$1 break; proxy_ssl_server_name on; proxy_set_header Host "${API_URL}"; proxy_set_header X-Forwarded-Proto https; } location /appraisal/ { proxy_pass https://${EVEPRAISAL_URL}/; 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/; 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}"; } }