-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (52 loc) · 2.36 KB
/
Copy path.env.example
File metadata and controls
61 lines (52 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# cdnsbl Configuration
# Log level (default: info)
# Options: debug, info, warn, error
LOGLEVEL=info
# Backend selection (default: dbip)
# Options:
# geoip - MaxMind GeoLite2 (requires license key, updates weekly)
# dbip - DB-IP Lite (no registration, updates monthly) [DEFAULT]
# ipapi - IP-API.com (no registration, real-time API, rate-limited to 45 req/min)
# ipinfo - IPInfo.io (requires token, MMDB or API mode, 50k req/month free)
# ip2location - IP2Location LITE (requires registration, updates monthly)
BACKEND=dbip
# Data Directory (default: ./data)
# All backend databases are stored in this directory
# For Docker: /data (automatically set in Dockerfile)
# For system-wide install: /var/lib/cdnsbl
# For development: ./data
# DATA_DIR=./data
# GeoIP Backend Configuration (requires free MaxMind account)
# Sign up at: https://www.maxmind.com/en/geolite2/signup
# Get license key at: https://www.maxmind.com/en/accounts/current/license-key
# Database updates automatically every 7 days
# Database file: GeoLite2-Country.mmdb
GEOIP_LICENSE_KEY=your_license_key_here
GEOIP_ACCOUNT_ID=your_account_id_here
# DB-IP Backend Configuration (no registration required)
# Database downloads automatically on first run
# Updates automatically every 30 days
# Database file: dbip-country-lite.mmdb
# IPInfo.io Backend Configuration (requires free account)
# Sign up at: https://ipinfo.io/signup
# Supports both MMDB database and HTTP API modes
# Free tier: 50,000 requests/month
# Database updates automatically every 30 days
# Database file: ipinfo-country.mmdb
IPINFO_TOKEN=your_token_here
# IPINFO_USE_API=true # Uncomment to force API mode instead of database
# IP2Location Backend Configuration (requires free account)
# Sign up at: https://lite.ip2location.com/sign-up
# Download DB1.LITE at: https://lite.ip2location.com/database/ip-country
# Database format: BIN (proprietary format)
# Database updates automatically every 30 days (if token provided)
# Database file: ip2location-country.bin
# IP2LOCATION_TOKEN=your_token_here # Optional, for auto-download
# DNS Server Configuration
# For development, use :5353 (no root required)
# For production, use :53 (requires root or CAP_NET_BIND_SERVICE)
DNS_LISTEN_ADDR=:5353
# DNS Zone to serve queries for
# Example query: 9.48.252.210.jp.cbl.home.lan
# This checks if IP 210.252.48.9 is in Japan
DNS_ZONE=cbl.home.lan