Add Gitea deploy workflow, compose stack and health endpoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7c39cb5562
commit
e9758499ff
13 files changed
+421
-2
No files matched your search
@@ -1,3 +1,43 @@
|
||||
# Flypaper
|
||||
|
||||
Self-hosted tarpit that traps and slows down scanning bots, with event logging and analysis.
|
||||
Self-hosted tarpit that traps and slows down scanning bots, with event logging and analysis.
|
||||
|
||||
## Deployment
|
||||
|
||||
Every push to `main` (except docs and `.md` files) runs `.gitea/workflows/deploy.yml` on the
|
||||
act_runner on Unraid: it builds the image, pushes it to
|
||||
`gitea.anticarnist.de/tom/flypaper` (`:latest` and `:<short-sha>`), deploys `compose.yaml`
|
||||
and waits for `/health`. A manual run is possible from the Actions tab (`workflow_dispatch`).
|
||||
|
||||
### Secrets
|
||||
|
||||
Gitea → repo → Settings → Actions → Secrets:
|
||||
|
||||
| Secret | Purpose |
|
||||
|---|---|
|
||||
| `REGISTRY_USER` | Registry username |
|
||||
| `REGISTRY_TOKEN` | Gitea access token with `package:write` (not the password) |
|
||||
| `FLYPAPER_ADMIN_PASSWORD` | Dashboard login password |
|
||||
|
||||
### Data
|
||||
|
||||
`/mnt/user/appdata/flypaper` on Unraid, mounted as `/data`:
|
||||
|
||||
- `flypaper.db`: trap events and the settings saved in the dashboard
|
||||
- `keys/`: Data Protection keys, so logins survive a restart
|
||||
|
||||
The container runs as UID 1654. The workflow creates the folder and sets its owner on
|
||||
every deploy.
|
||||
|
||||
### Access
|
||||
|
||||
- Dashboard: `http://192.168.1.14:44307` (LAN only, login with `FLYPAPER_ADMIN_PASSWORD`)
|
||||
- Trap: NPM forwards to `flypaper:8080` over `proxynet`. Every Host header other than the
|
||||
dashboard host lands in the trap, as do the trap paths on known hosts.
|
||||
- `/health` answers only to private addresses; from public addresses it is a trap like any
|
||||
other path.
|
||||
|
||||
### Rollback
|
||||
|
||||
Pin the image in `compose.yaml` to a previous `:<short-sha>` and push, or deploy that tag
|
||||
manually on Unraid.
|
||||
Reference in new issue
Block a user