whitelister-eternal/config.example.toml

38 lines
No EOL
977 B
TOML

[http]
# IP address to bind to. This should almost always be 127.0.0.1
host = "127.0.0.1"
# Port to bind to
port = 3000
[whitelister]
# Fail if a test returns a warning. This is not implemented by any tests yet.
failOnWarn = true
[mysql]
# MySQL connection information, used to cache IP addresses and results
host = "127.0.0.1"
user = "whitelister"
password = "hunter2"
database = "whitelister"
[cloudflare]
# If enabled, any IP that fails a test will be added to the specified Cloudflare list
enabled = true
apiKey = ""
accountID = ""
listID = ""
[tests.asn]
# Test to check if an IP is in a list of bad ASNs
enabled = true
# File containing a list of ASNs to blacklist
blacklistFile = "./asn_blacklist"
# Directory to cache the MaxMind ASN database in
maxmindDirectory = "./maxmind/"
# https://www.maxmind.com/en/accounts/current/license-key
maxmindAccountID = ""
maxmindLicenseKey = ""
[tests.spur]
# Test to check if an IP is detected by https://spur.us
enabled = true