archy/apps/indeedhub
archipelago b1eea8c053 feat(indeedhub): manifest-driven 7-member stack, orchestrator-first (#20 phase 3)
Author the IndeedHub stack as 7 manifests (postgres/redis/minio/relay/api/
ffmpeg + frontend) and route install_indeedhub_stack through the
orchestrator first (immich pattern), falling back to the legacy installer
only when the manifests aren't deployed.

Data-preserving by construction — the manifests reproduce the live install
exactly so an existing node ADOPTS rather than recreates:
- container_name = the live hyphenated names the runtime already references
  (health_monitor tiers/deps, crash_recovery).
- named volumes indeedhub-{postgres,redis,minio,relay}-data (not bind mounts).
- dedicated indeedhub-net + network_aliases [postgres|redis|minio|relay|api]
  so the api/ffmpeg env hostnames and the frontend nginx upstreams resolve
  unchanged.
- generated_secrets (indeedhub-db-password/-minio-password owned by their
  backends, indeedhub-jwt by the api) reuse the live /var/lib/archipelago/
  secrets values (ensure_one no-ops on existing files; postgres pw is fixed
  at PGDATA init). minio user "indeeadmin" + AES_MASTER_SECRET literal kept.

The frontend carries the post_install hook (#20) that replaces the hardcoded
patch_indeedhub_nostr_provider: strip X-Frame-Options, refresh
nostr-provider.js from /opt/archipelago/web-ui, inject the <script> if
absent, reload nginx — defensive/idempotent since indeedhub:1.0.0 already
bakes these. Frontend manifest also corrected off its dead Next.js shape
(health check now nginx :7777, tmpfs /run + /var/cache/nginx).

Builds + unit-tested; live adoption/lifecycle verification on .228 next.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 15:46:26 -04:00
..
2026-03-14 17:12:41 +00:00
2026-03-15 00:40:55 +00:00
2026-03-14 17:12:41 +00:00
2026-03-14 17:12:41 +00:00

Indeehub — Bitcoin Documentary Streaming

Bitcoin documentary streaming platform featuring God Bless Bitcoin and other educational content about Bitcoin, sovereignty, and decentralized technology.

Self-hosted Next.js app with Nostr identity sign-in via Archipelago's NIP-07 provider.

Building the Image

The app image is built from the indeehub-frontend project at ~/Projects/indeehub-frontend.

Option 1: Use the build script

# From archy repo root
./apps/indeedhub/build-from-prototype.sh

Option 2: Build from source directory

cd ~/Projects/indeehub-frontend
podman build -t localhost/indeedhub:latest -f ~/Projects/archy/apps/indeedhub/Dockerfile .

Installing from App Store

  1. Build the image using one of the options above (must exist before install)
  2. Go to Dashboard -> App Store (Marketplace)
  3. Find Indeehub and click Install
  4. On first launch, pick a Nostr identity to sign in with
  5. The app appears in My Apps once the container is running

Port

  • Web UI: 8190 (maps to container port 3000)

Container

  • Image: localhost/indeedhub:latest (built locally, not pulled from a registry)
  • Runtime: Node.js 20 (Next.js standalone)
  • Port: 8190 -> 3000
  • Read-only root filesystem with tmpfs for /tmp and .next/cache

Nostr Identity

On first launch, Archipelago shows a cypherpunk identity picker modal. Select which of your identities to use for NIP-07 signing. The NIP-07 provider is injected automatically via nginx proxy.

Services

The app connects to the following external services (configured at build time):

  • Indeehub API (content, auth, streaming)
  • AWS S3 (media storage via CloudFront CDN)
  • Nostr relays (via NIP-07 provider from Archipelago)