# Personal deployment: Unraid This folder is Tom's own setup. It is kept as an example; the main [README](../../README.md) describes a generic installation. 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` (`:main` and `:`), deploys `deploy/unraid/compose.yaml` and waits for `/health`. A manual run is possible from the Actions tab (`workflow_dispatch`). The stack follows `:main`, not the releases. ## Releases A version tag runs `.gitea/workflows/release.yml`: it builds the image with that version, pushes `:X.Y.Z`, `:X.Y`, `:X` and `:latest` (a pre-release such as `v0.2.0-rc.1` gets only its own tag) and creates a Gitea release with the version's section of `CHANGELOG.md` as notes. Nothing is deployed. 1. Move the entries under `[Unreleased]` in `CHANGELOG.md` into a new version section with today's date, update the links at the bottom, commit and push. 2. Tag and push: ```bash git tag -a v0.1.0 -m "Flypaper 0.1.0" git push origin v0.1.0 ``` The registry serves the images to anyone because the `Tom` account is public; packages inherit the visibility of their owner, not of the repository. To show the package on the repository page, link it once: Gitea → Tom → Packages → `flypaper` → Settings → Link to repository `Flypaper` (or `POST /api/v1/packages/Tom/container/flypaper/-/link/Flypaper` with a token that has `write:package`). If the release step fails (e.g. the built-in token may not create releases), the images are already pushed. Create the release by hand: Gitea → repo → Releases → New Release, pick the tag, title `Flypaper X.Y.Z`, paste the changelog section. ## 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 - `geoip/`: DB-IP databases, downloaded on first start and refreshed monthly 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` → container port `8081` (LAN only, login with `FLYPAPER_ADMIN_PASSWORD`) - Trap: NPM forwards to `flypaper:8080` over `proxynet`. Everything on that port is trapped. - `/health` on `8080` answers only to private addresses; from public addresses it is a trap like any other path. On `8081` it always answers. ## Rollback Pin the image in `compose.yaml` to a previous `:` or a release `:X.Y.Z` and push, or deploy that tag manually on Unraid.