# Reference: server.geoip

URL: https://scalws.com/docs/reference/server-geoip/
Source: `docs/reference/schema` in the ScalWS repository

<h3 id="server.geoip.database"><code>server.geoip.database</code></h3>

| | |
|---|---|
| Syntax | `database: <string>` |
| Default | `required` |
| Context | `server.geoip` |
| Reload | applies on reload |

Absolute path of a MaxMind DB format country database (MaxMind GeoIP2/GeoLite2 Country, DB-IP IP to Country Lite, IPinfo Lite), e.g. `/var/lib/scalws/geoip/country.mmdb`. Read into memory when a set has `countries`; a regular file of 1 KiB to 256 MiB owned by root (or scalwsd's user), not writable by group or others. Read again on reload when it changed.
