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