# Copy to /etc/crawler-alert.env and edit. # Only CRAWLER_RECIPIENT is required. # Where the reports are mailed. CRAWLER_RECIPIENT=you@example.com # Name used in mail subjects and the report header. CRAWLER_SITE=git.example.com # Traefik access log. Glob so rotated/gzipped files are included. CRAWLER_LOG=/var/log/traefik/access.log* # Traefik router to count, e.g. forgejo@docker. Leave empty to count # everything that reaches Traefik (right for a single-site host). CRAWLER_ROUTER= # Daily alert fires when yesterday exceeds this many requests. # Set it near your normal peak, not far above it: a threshold that never # fires is not a tripwire. Check a few days of real traffic first with # crawler-alert.py --dry-run CRAWLER_THRESHOLD=100000 # Cached vendor IP ranges; used when a vendor endpoint is unreachable. CRAWLER_CACHE=/var/cache/crawler-alert/ranges.json # --- SMTP ------------------------------------------------------------- # By default the script reads SMTP settings from a Forgejo/Gitea # app.ini [mailer] section, so credentials live in one place only: CRAWLER_MAIL_CONTAINER=forgejo CRAWLER_MAIL_INI=/data/gitea/conf/app.ini # Or configure SMTP directly and ignore the container entirely. # Setting CRAWLER_SMTP_ADDR switches to this path. #CRAWLER_SMTP_ADDR=smtp.example.com #CRAWLER_SMTP_PORT=587 #CRAWLER_SMTP_USER=alerts@example.com #CRAWLER_SMTP_PASSWORD= #CRAWLER_SMTP_FROM=alerts@example.com # smtp+starttls (default) | smtps | smtp (no TLS, local relay) #CRAWLER_SMTP_PROTOCOL=smtp+starttls # --- reverse DNS ------------------------------------------------------ # FCrDNS verification for vendors that publish no IP ranges # (Amazonbot, meta-externalagent, YouBot, Bytespider, PetalBot). # Set to 0 to disable if your resolver is slow or unavailable. CRAWLER_RDNS=1 # Max unique addresses resolved per bot per run. Each costs two DNS # lookups; the busiest addresses are resolved first. CRAWLER_RDNS_MAX=400