refactor: online geo
Node.js CI / build (push) Has been cancelled

This commit is contained in:
lly
2026-07-23 16:20:36 +08:00
parent 86cf8076ed
commit c91156820c
3 changed files with 127 additions and 0 deletions
+4
View File
@@ -50,6 +50,10 @@ Optional: set `API_URL` to change the base URL used by internal UI API calls.
Relative paths are served under `BASE_PATH`; absolute URLs are proxied through the local `/api` route.
For example, `API_URL=/internal-api` or `API_URL=https://api.example.com/api`.
IP geolocation uses the IP9 online API first and falls back to the local GeoLite2 database when the
online request fails. Set `IP_LOCATION_API_URL` to override the endpoint and
`IP_LOCATION_API_TIMEOUT` to change the request timeout in milliseconds (default: `2000`).
The connection URL format:
```bash