first commit
This commit is contained in:
51
.env.example
Normal file
51
.env.example
Normal file
@@ -0,0 +1,51 @@
|
||||
# Flask Configuration
|
||||
FLASK_HOST=0.0.0.0
|
||||
FLASK_PORT=5000
|
||||
FLASK_DEBUG=False
|
||||
SECRET_KEY=change-me-in-production-use-random-string
|
||||
|
||||
# Application Settings
|
||||
APP_NAME=GeoIP Ban Generator
|
||||
LOGO_URL=
|
||||
LOGO_LINK=/
|
||||
|
||||
# Footer
|
||||
FOOTER_TEXT=© 2026 GeoIP Ban Generator
|
||||
FOOTER_LINK=
|
||||
FOOTER_LINK_TEXT=Documentation
|
||||
|
||||
# MaxMind Database
|
||||
MAXMIND_PRIMARY_URL=https://github.com/P3TERX/GeoLite.mmdb/releases/download/2026.02.07/GeoLite2-Country.mmdb
|
||||
MAXMIND_FALLBACK_URL=https://git.io/GeoLite2-Country.mmdb
|
||||
MAXMIND_UPDATE_INTERVAL_DAYS=7
|
||||
MAXMIND_AUTO_UPDATE=True
|
||||
|
||||
# Cache Settings
|
||||
CACHE_ENABLED=True
|
||||
CACHE_TTL_SECONDS=3600
|
||||
|
||||
# MaxMind Database
|
||||
MAXMIND_UPDATE_INTERVAL_DAYS=7
|
||||
MAXMIND_AUTO_UPDATE=True
|
||||
|
||||
# Background Scheduler Settings
|
||||
SCHEDULER_ENABLED=true
|
||||
SCAN_INTERVAL=7d
|
||||
SCAN_TIME=02:00
|
||||
SCAN_ON_STARTUP=true
|
||||
CACHE_MAX_AGE_HOURS=168
|
||||
|
||||
# Parallel scanning
|
||||
PARALLEL_WORKERS=8 # 0=auto
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_DB=0
|
||||
REDIS_PASSWORD=
|
||||
REDIS_ENABLED=true
|
||||
REDIS_CACHE_TTL=86400
|
||||
|
||||
# Precache Daemon Settings
|
||||
PRECACHE_INTERVAL_HOURS=168
|
||||
PRECACHE_CHECK_INTERVAL=3600
|
||||
Reference in New Issue
Block a user