mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 11:28:22 +01:00
Production is fully self-hosted on the Hetzner box (bitbaum, behind Caddy) with self-hosted Supabase. This scrubs the remaining Vercel footprint: Code (src/ now has zero Vercel references): - security page: "Hosted on Vercel" → self-hosted infrastructure - FleetCrown URL fleetcrown.vercel.app → fleetcrown.orangecat.ch (entity registry + external-publish allowlist; the dead vercel.app subdomain was also a re-registration risk in an allowlist) - webhook-secret error + cron/env comments point at the box, not Vercel - corrected stale "Vercel kills the function on response" comments (false on a persistent server) to accurate await-before-respond reasoning Security/config: - supabase/config.toml: dropped dead *.vercel.app auth redirect URLs - @vercel/mcp-adapter dependency removed (unused) Artifacts removed: - scripts/auth/vercel-login.js, scripts/preview-url.sh, scripts/dev/merge-env.js, scripts/monitoring/deployment-monitor.js, scripts/db/setup-env.js, mcp-servers/vercel-openapi.json, .vercel/ - setup_vercel_secrets MCP tool in mcp-servers/github-server.js - .gitignore Vercel section; env scripts stripped of vercel-login/token Docs + .claude rules/commands rewritten to the self-host deploy flow (scripts/deploy-selfhost.sh / .github/workflows/cd.yml; env at /opt/orangecat/app/.env). Historical/archive records left intact. Verified: tsc 0 errors, SELF_HOST=1 build green, cron unit tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
DevOps Overview
This is the authoritative, up-to-date guide for OrangeCat DevOps. It summarizes environments, CI/CD, infrastructure, observability, security, and runbooks for both human engineers and AI coding agents.
- Read first: Deployment guide – docs/deployment/DEPLOYMENT_PROCESS.md
- CI/CD Pipeline – docs/devops/ci-cd.md
- Infrastructure (self-hosted Hetzner) – docs/devops/infrastructure.md
- Observability (Health, Metrics, Logs) – docs/devops/observability.md
- Runbooks (Backups/Restores) – docs/devops/runbooks/backup-restore.md
- Supabase Connectivity – docs/devops/supabase.md
Source of truth notes:
- Node.js: v20 across workflows and Docker.
- Tests and type-checks are blocking in CI with pragmatic coverage gates.
- Security: strict headers + CSP (reporting enabled), SVG disabled unless sanitized.
Environment Files Policy (Local)
.env.localis developer-owned and MUST NOT be deleted or overwritten by scripts or agents.- Automated backups live in
.env-backups/; usescripts/utils/env-manager.jsto backup/restore. - Prefer
env-manager validateandsetupover copying.env.exampleonto an existing file. - CI uses dummy env values for builds; the box's env lives in
/opt/orangecat/app/.env. GitHub Actions must not write to.env.local.