Files
CatoandClaude Opus 5.5 b774f06de7 docs: correct drift in agent instructions, README and ops docs (#1348)
* docs: correct drift in agent instructions, README and ops docs

- Auto-merge sweep lives in bitbaum/fleet, not bitbaum/dotfiles; cd.yml is
  dispatch-only (handed off by ci.yml post-main), not a workflow_run listener
- Design-system docs match globals.css / tailwind.config.ts: warm accent
  #ff5c00, bg-bitcoinOrange (no bitcoin-orange utility), tiffany/orange are
  legacy; display typography is shipped
- .claude rules: real paths (src/lib/validation/, entityCrudHandler.ts,
  standardResponse.ts, withZod/withRateLimit/withRequestId, services/actors),
  real Button/Alert APIs, real rate limits, search via @bitbaum/searchkit,
  real payment modules, PostgREST instead of the POSTGRES_URL tunnel,
  lint-staged pre-commit, eslint.config.mjs
- README/AGENTS/REVIEW: Next 16 / TS 6 / Tailwind 4, pnpm, messaging is not
  E2E-encrypted yet, beta not Live, CD deploys, migrations apply on deploy
- docs/: deploy process, CI/CD, migrations guide, moved docs/ paths, stale
  CLI-entity and edge-function docs flagged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* style(docs): prettier on the docs touched by the drift fix

lint-staged would have run this; the commit was made without hooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 12:07:09 +02:00

1.6 KiB

Infrastructure

Primary: self-hosted on Hetzner ("bitbaum", since 2026-06-12; Vercel team was blocked for fair-use).

  • App: Next.js standalone build (SELF_HOST=1 pnpm run build) running as the orangecat-app systemd unit on port 4003.
  • Reverse proxy: Caddy serves orangecat.ch + www.orangecat.ch.
  • Supabase: self-hosted at supabase.orangecat.ch (replaces the hosted project).
  • Env: /opt/orangecat/app/.env on the box; scripts/deploy-selfhost.sh copies it into each new release.
  • Runbook: loki/docs/infrastructure/hetzner-migration.md (Loki repo — same box).
  • Deploys are automated: pushes to main run CI (ci.yml); on success, CD (cd.yml) builds the standalone bundle off-box and ships it via scripts/deploy-selfhost.sh (atomic swap + rollback). A prod login E2E (e2e-auth.yml) also runs.

Historical (pre-2026-06-12): Vercel (Next.js app + serverless API), config in vercel.json + next.config.js.

Optional Self-Hosted Stack (for on-prem / advanced monitoring)

  • Compose file: deployment/production/docker-compose.yml
  • Services: Traefik, web (Next.js standalone), Postgres, Redis, Prometheus, Loki, Promtail, Grafana, scheduled Postgres backups.
  • Monitoring configs: deployment/production/monitoring/ (Prometheus, Loki, Promtail, Grafana datasources).

Security

  • Traefik dashboard should not be public; restrict by network/VPN.
  • Postgres/Redis are bound to 127.0.0.1 and internal network only.
  • Pin versions for all infra images to avoid drift.

Backups

  • prodrigestivill/postgres-backup-local runs on a schedule with retention.
  • See runbook for restoration procedure.