whitelister-eternal/config.example.toml

38 lines
978 B
TOML
Raw Normal View History

2024-07-26 00:26:05 -04:00
[http]
# IP address to bind to. This should almost always be 127.0.0.1
2024-07-26 00:26:05 -04:00
host = "127.0.0.1"
# Port to bind to
2024-07-26 00:26:05 -04:00
port = 3000
[whitelister]
# Fail if a test returns a warning. This is not implemented by any tests yet.
failOnWarn = false
2024-07-26 00:26:05 -04:00
[mysql]
# MySQL connection information, used to cache IP addresses and results
2024-07-26 00:26:05 -04:00
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
2024-07-26 00:26:05 -04:00
enabled = true
apiKey = ""
accountID = ""
listID = ""
[tests.asn]
# Test to check if an IP is in a list of bad ASNs
2024-07-26 00:26:05 -04:00
enabled = true
# File containing a list of ASNs to blacklist
2024-07-26 00:26:05 -04:00
blacklistFile = "./asn_blacklist"
# Directory to cache the MaxMind ASN database in
2024-07-26 00:26:05 -04:00
maxmindDirectory = "./maxmind/"
# https://www.maxmind.com/en/accounts/current/license-key
2024-07-26 00:26:05 -04:00
maxmindAccountID = ""
maxmindLicenseKey = ""
[tests.spur]
# Test to check if an IP is detected by https://spur.us
2024-07-26 00:26:05 -04:00
enabled = true