40 lines
No EOL
1.8 KiB
Text
40 lines
No EOL
1.8 KiB
Text
# production or development
|
|
NODE_ENV=production
|
|
|
|
############################### TOKENS ###############################
|
|
# Cloudflare (https://dash.cloudflare.com/profile/api-tokens)
|
|
CLOUDFLARE_EMAIL=
|
|
CLOUDFLARE_ZONE_ID=00000000000000000000000000000000
|
|
CLOUDFLARE_API_KEY=0000000000000000000000000000000000000000
|
|
|
|
# AbuseIPDB (https://www.abuseipdb.com/account/api)
|
|
ABUSEIPDB_API_KEY=00000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
|
|
# API key for api.sefinek.net. Contact me at contact@sefinek.net to obtain it and contribute to the sefinek24/Malicious-IP-Addresses. Leave empty if you don't have a token.
|
|
SEFINEK_API_SECRET=
|
|
|
|
############################### CYCLES ###############################
|
|
# Main interval (in minutes) of each cycle.
|
|
CYCLE_INTERVAL=120
|
|
|
|
# The minimum time that must pass after reporting an IP address before it can be reported again.
|
|
# The required time is >= 15 minutes, according to AbuseIPDB API limits.
|
|
REPORTED_IP_COOLDOWN_MS=6
|
|
|
|
# The maximum URI length that can be reported to AbuseIPDB.
|
|
# If Cloudflare returns a longer URI, the API request will fail.
|
|
MAX_URL_LENGTH=920
|
|
|
|
# Additional delay (in seconds) after each successful IP report to avoid overloading the AbuseIPDB API.
|
|
SUCCESS_COOLDOWN_MS=2
|
|
|
|
# Interval for refreshing your IP address (in minutes).
|
|
# This ensures that WAF violations originating from your IP address are not reported to AbuseIPDB.
|
|
IP_REFRESH_INTERVAL=80
|
|
|
|
############################### SEFINEK API ###############################
|
|
# Report IP addresses to api.sefinek.net to support the development of the repository at https://github.com/sefinek24/Malicious-IP-Addresses. SEFINEK_API_SECRET is required if true.
|
|
REPORT_TO_SEFINEK_API=true
|
|
|
|
# How often should the log (reported_ips.csv) be analyzed and sent to the Sefinek API? In minutes.
|
|
SEFINEK_API_INTERVAL=60 |