Self-hosted story point estimation

Teams with strict data policies can run their own Backlogfit instance. It is one small, signed container image with no external database and no outbound connections, so it fits in isolated and air-gapped networks.

Deployment options

  • Container (Podman or Docker). A Node.js server that serves the web app and runs rooms in memory, optionally persisting to SQLite in a volume.
  • Cloudflare Workers. Deploy the Worker and Durable Object version to your own Cloudflare account.

Run the container

The image is distroless, runs as a non-root user, works with a read-only root file system and keeps rooms in memory by default:

podman run -d --name backlogfit -p 127.0.0.1:8080:8080 --read-only --tmpfs /tmp:rw,size=16m,mode=1777,noexec,nosuid,nodev --cap-drop=ALL --security-opt=no-new-privileges --memory=256m --pids-limit=128 -e PUBLIC_ORIGIN=https://estimate.example.com -e TRUST_PROXY=true ghcr.io/sinet2000/backlogfit:latest

Docker accepts the same flags. Put the container behind a reverse proxy that terminates TLS (hence TRUST_PROXY=true and the loopback-only port), and set PUBLIC_ORIGIN to the address your team uses. To keep rooms across restarts, add -e DATA_DIR=/data -v backlogfit-data:/data.

To build the image from source, use --format docker so the health check is kept:

podman build --format docker -f apps/server/Containerfile -t backlogfit .

Settings

Environment variables (safe defaults; PUBLIC_ORIGIN is required in production)
VariableDefaultPurpose
PUBLIC_ORIGINrequired in productionExact public origin; checked on room creation and WebSocket upgrades.
ALLOWED_ORIGINSemptyExtra exact origins, comma separated.
PORT / HOST8080 / 0.0.0.0Listen address inside the container.
TRUST_PROXYfalsetrue (one proxy), a hop count 1–9, or cloudflare; decides which address rate limits use.
DATA_DIRempty (memory)Directory for SQLite storage if rooms should survive restarts.
DEFAULT_LIFETIME_HOURS2Default room lifetime (1–24).
MAX_LIFETIME_HOURS8Hard maximum including extensions (1–24).
IDLE_TIMEOUT_MINUTES30Close rooms without activity.
MAX_PARTICIPANTS50Upper bound per room.
MAX_TASKS500Tasks per room.
MAX_ROOMS1000Concurrent rooms per server.
MAX_MESSAGE_BYTES16384Largest accepted WebSocket message.
RATE_MSGS_PER_SEC / RATE_BURST20 / 40Per-connection message rate limit.
ROOM_CREATE_PER_MIN10Room creations per client address per minute.
PASSCODE_MAX_ATTEMPTS5Wrong passcodes per room before passcode joins are refused.
MAX_CONNECTIONS5000Concurrent WebSocket connections per server.
MAX_CONNECTIONS_PER_CLIENT50Concurrent WebSocket connections per client address.
WS_UPGRADES_PER_MIN120WebSocket upgrades per client address per minute.
HELLO_TIMEOUT_SECONDS20Close sockets that do not join within this time.
HEARTBEAT_SECONDS30WebSocket ping interval; dead sockets are dropped.

Invalid or out-of-range values stop the server at start-up. See the self-hosting guide for hardening advice, reverse proxy examples and network layout.

Verify the image

Every release image is signed with Sigstore cosign (keyless), scanned with Trivy, and comes with CycloneDX SBOMs and build provenance. Deploy by digest and verify the signature first:

cosign verify ghcr.io/sinet2000/backlogfit@sha256:<digest> --certificate-identity-regexp '^https://github.com/Sinet2000/backlogfit/.github/workflows/release.yml@refs/tags/v' --certificate-oidc-issuer https://token.actions.githubusercontent.com

Next steps