Skip to main content
These endpoints change server-wide settings under Settings → General. They need a signed-in session, not an API token, and a superadmin, except the GeoIP lookup, which any signed-in user may call.

Endpoints

Response rate limiting

GET /api/settings/rrl returns config, defaults and counters (dropped, truncated and would be limited, since the server started). PUT /api/settings/rrl takes the whole config object:
A rate of 0 doesn’t limit that kind. Settings take effect right away. Every change is in the audit log as settings.rrl. See Rate limiting.

GeoIP database

PUT /api/geoip sets where the country database comes from:
string
A .mmdb or .mmdb.gz URL; {year} and {month} are filled in. GET /api/geoip returns the DB-IP Lite URL as default_url.
boolean
Download the database again every month.
GET /api/geoip returns the config, the default_url, the status of the loaded database, and how many steered records depend on where clients are (placed_records). POST /api/geoip/download fetches it now and answers with the same. GET /api/geoip/lookup?ip=203.0.113.9 answers with the address’s country and continent, or null for location when the address isn’t in the database (or no database is loaded):
Changes are in the audit log as settings.geoip and settings.geoip_download. See GeoDNS and health checks.