{{template "base" .}} {{define "content"}}
GeoIP Database
Automatic download and refresh of ipinfo.io MMDB database for CrowdSec enrichment
Database Status
{{if .Status.Updating}} {{end}} {{if .Status.LastErrMsg}} {{end}}
File {{.Status.DBFile}}
Destination path {{.Status.DBPath}}
DB exists {{if .Status.DBExists}} Yes {{.Status.DBSizeHuman}} {{else}} No {{end}}
Last updated {{if .Status.LastUpdated.IsZero}} Never {{else}} {{.Status.LastUpdated.Format "2006-01-02 15:04:05 UTC"}} {{end}}
Next refresh {{if .Status.NextRefresh.IsZero}} {{else}} {{.Status.NextRefresh.Format "2006-01-02 15:04:05 UTC"}} (every {{.Status.RefreshDays}} days) {{end}}
Token configured {{if .Status.TokenSet}} Yes {{else}} No Set ipinfo_token in app_config.conf {{end}}
Status Downloading...
Last error {{.Status.LastErrMsg}}
{{if .Status.TokenSet}}
Manual Refresh

Downloads {{.Status.DBFile}} from ipinfo.io and saves it to {{.Status.DBPath}}. CrowdSec will use the new file automatically — no restart needed.

{{end}}
Setup Notes

1. Get a free token at ipinfo.io/signup

2. Add to app_config.conf:

ipinfo_token        = your-token-here
ipinfo_db_file      = asn.mmdb
ipinfo_db_path      = /var/lib/crowdsec/data/GeoLite2-ASN.mmdb
ipinfo_refresh_days = 7

3. Restart crowdsec-dashy and click Refresh Now

4. For country enrichment, also download country.mmdb and configure CrowdSec to use it

{{end}} {{define "scripts"}}{{end}}