Files
Flypaper/docs/configuration.md
T
TomandClaude Sonnet 5.5 c5167262b9
Build and deploy / build (push) Successful in 1m34s
Build and deploy / deploy (push) Successful in 20s
Remove the unused content choice and the plain-text hold method
The link labyrinth held every catch that mattered, text-drip was never
used. Flypaper__Drip__Content now only triggers the removed-settings warning.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 14:21:54 +01:00

4.4 KiB

Configuration

Data volume

The container runs as a non-root user (UID 1654) and keeps everything under /data: the SQLite database, the Data Protection keys for logins and the GeoIP databases. A named volume gets the right owner automatically; for a bind mount, chown 1654:1654 the host folder first (or start the container as root once, as the Unraid template does).

Environment variables

All optional. Read at startup; list entries need an index (__0, __1, ...).

Variable Purpose Default
Flypaper__Admin__Password Fixes the dashboard password and disables the first-visit setup and the password change set on first visit
Flypaper__Http__TrustedProxies__0 IP or CIDR of the reverse proxy allowed to set X-Real-IP / X-Forwarded-For; replaces the default private networks
Flypaper__Mcp__Token Fixed bearer token for the MCP endpoint, in addition to tokens created on the settings page none
Flypaper__Ports__Trap / Flypaper__Ports__Dashboard Container ports 8080 / 8081
ConnectionStrings__Flypaper SQLite database Data Source=/data/flypaper.db
Flypaper__DataProtection__KeysPath Keys for login cookies and forms /data/keys
Flypaper__GeoIp__Directory Folder for the DB-IP databases; empty disables GeoIP /data/geoip
Flypaper__Drip__MinDelay / MaxDelay Pause between chunks 00:00:00.05 / 00:00:01
Flypaper__Drip__MinChunkSize / MaxChunkSize Bytes per chunk 1 / 64
Flypaper__Drip__HeadStartSize Bytes sent immediately before dripping starts (0 = off) 1024
Flypaper__Drip__LinkSpacing Link labyrinth: bytes of text between two links in the HTML page (0 = off, plain html-drip) 160
Flypaper__Drip__BaitPaths Comma-separated decoy paths listed in robots.txt (max. 8, empty = off); requests to them get robots-bait and are held for at least 24 h /backup-2024/,/admin-old/,/internal/db-export/,/old-site/
Flypaper__Drip__Lure First visit of an unknown IP to / or /favicon.ico gets an instant WordPress-looking page or icon (lure-page, lure-icon) and is not held; every later request is trapped as usual true
Flypaper__Drip__MatchPath Pick content by request path (/.env, *.json, *.xml, *.yml, *.sql, /.git/…, /SDK/…, /ISAPI/…, wp-login.php) true
TZ Time zone for the dashboard UTC

The defaults of the runtime settings below can also be set this way, e.g. Flypaper__MaxConnections. Values saved on the settings page override them.

Runtime settings

Changed on the dashboard's settings page, stored in the database, effective immediately. The general reset button removes all saved values; the hold method section has its own reset.

Setting Default
Hold method: pause between chunks, min and max (10 ms to 30 s) 50 ms / 1000 ms
Hold method: chunk size, min and max (1 to 4096 bytes) 1 / 64 bytes
Hold method: head start, sent without delay before the drip (0 to 65536 bytes) 1024 bytes
Hold method: content matching the request path (e.g. /.env, /config.json) on
Hold method: maximum hold time per catch 01:00:00
Maximum connections overall 1000
Maximum connections per IP 10
Keep catches (days, 0 = forever) 90
Don't store catches from private networks on

Security and privacy

  • Keep the dashboard internal. Publish port 8081 only to your LAN or to localhost and never forward it from your public proxy.
  • Finish the setup before the dashboard is reachable by anyone else. Until a password is set, whoever opens the dashboard first can set it. The setup page disappears once a password exists.
  • Use a strong admin password (at least 12 characters). Only a salted hash is stored. The login runs over plain HTTP unless you put the dashboard behind TLS yourself.
  • The limits protect you, not the bots. Every catch holds a socket in Flypaper and in your proxy for up to the maximum hold time. Keep MaxConnections well below what your proxy can handle (nginx: worker_connections), and keep the per-IP limit low so a single scanner can't fill all slots.
  • An HTTPS catch-all is rarely worth it, see reverse proxy.
  • Privacy. Flypaper stores IP addresses, requested URLs and user agents. Keep retention short if that matters in your jurisdiction.