mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 08:08:41 +01:00
Runs on the Ubuntu 24.04 ARM box, takes ~10 min, leaves you with:
- Postgres 17 + fleetcrown/orangecat roles + databases (per-role pg_hba)
- v0.6 NOTIFY triggers applied
- Bridge built and running as systemd fleetcrown-bridge.service
- Caddy reverse-proxy with auto letsencrypt TLS at BRIDGE_HOST
- UFW + iptables on 22/80/443/5432 only
- Daily pg_dump cron retaining 30d in /backups
Required env: FLEETCROWN_DB_PASSWORD, ORANGECAT_DB_PASSWORD, BRIDGE_HOST
Optional env: FLEETCROWN_DUMP_URL, ORANGECAT_DUMP_URL (restore from URL)
User flow:
1. Point bridge.fleetcrown.com (or whatever) A record at the Oracle IP
2. ssh ubuntu@<oracle-ip>
3. FLEETCROWN_DB_PASSWORD=... ORANGECAT_DB_PASSWORD=... BRIDGE_HOST=bridge.fleetcrown.com \
curl -fsSL https://raw.githubusercontent.com/maonakamoto/fleetcrown/main/scripts/oracle/install.sh | bash
4. Set the printed Vercel env vars, redeploy
5. /api/health returns 200 against the new DB, /control feels real-time
Idempotent — re-running won't error. Each step checks for the prior
state and skips if already done. Safe to re-run after a partial failure.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>