project-bifrost-platform/scripts
Arlind 819f8fa91c feat(deploy): nginx reverse-proxy deploy setup for bifrost-portal.fenja.ai
Run the Astro Node standalone server as a hardened systemd service on
127.0.0.1:4322, behind the existing nginx which terminates TLS and proxies
the bifrost-portal.fenja.ai hostname. Coexists with the other Fenja site;
its config is untouched.

- deploy/bifrost-portal.service: systemd unit (bifrost user, EnvironmentFile,
  ProtectSystem, ReadWritePaths to the data dir only)
- deploy/nginx/bifrost-portal.fenja.ai.conf: HTTP->HTTPS + proxy site block
- .env.production.example: prod env vars (secret, db path, uploads, host/port)
- scripts/deploy.sh: server-side pull -> install (rebuild native dep) ->
  build -> migrate -> restart; persistent data untouched
- scripts/backup.sh: nightly online .backup, 30-day retention
- DEPLOY.md: full runbook (port check, DNS, provision, TLS, backups, rollback)

Persistent data (db, uploads, backups) lives in /var/lib/bifrost-portal,
outside the /opt/bifrost-portal build dir, so redeploys never wipe it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 12:54:35 +02:00
..
backup.sh feat(deploy): nginx reverse-proxy deploy setup for bifrost-portal.fenja.ai 2026-06-17 12:54:35 +02:00
deploy.sh feat(deploy): nginx reverse-proxy deploy setup for bifrost-portal.fenja.ai 2026-06-17 12:54:35 +02:00
migrate.js fix(db): migrate.js honors BIFROST_DB_PATH 2026-06-17 12:54:22 +02:00
seed-demo.js feat(banner): editorial dispatch banner — title + 2-paragraph excerpt + author block 2026-05-12 14:38:51 +02:00
seed-production.js feat(db): production seed script with the real pilot data 2026-06-17 11:16:40 +02:00
seed-roadmap.js feat(db): roadmap_items gains 'considering' + 'in_beta' rename, --on-ink tokens 2026-05-12 10:46:39 +02:00
seed.js chore(seed): fake email domains + extend wipe chain 2026-05-11 17:12:47 +02:00