Add Nostr relay + seed data to Docker deployment
- Add nostr-rs-relay service to docker-compose for persistent comments, reactions, and profiles on the dev server - Add one-shot seeder container that auto-populates the relay with test personas, reactions, and comments on first deploy - Proxy WebSocket connections through nginx at /relay so the frontend connects to the relay on the same host (no CORS) - Make relay URL dynamic: reads from VITE_NOSTR_RELAYS in dev, auto-detects /relay proxy path in production Docker builds - Make seed scripts configurable via RELAY_URL and ORIGIN env vars - Add wait-for-relay script for reliable container orchestration - Add "Resume last played" hero banner on My List tab Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,8 +11,8 @@ import {
|
||||
TASTEMAKER_PERSONAS,
|
||||
} from '../src/data/testPersonas.js'
|
||||
|
||||
const RELAY_URL = 'ws://localhost:7777'
|
||||
const ORIGIN = 'http://localhost:5174'
|
||||
const RELAY_URL = process.env.RELAY_URL || 'ws://localhost:7777'
|
||||
const ORIGIN = process.env.ORIGIN || 'http://localhost:5174'
|
||||
|
||||
// ── Content catalog (matching src/data/indeeHubFilms.ts) ──────────
|
||||
const CONTENT = [
|
||||
|
||||
Reference in New Issue
Block a user