Files
RAPPORT-HOST/.env.example
T
karim 6290475ea3 Initial: RAPPORT-HOST Iteration 1 (proprietär)
Kommerzielle Hosting-/Abo-Plattform für Rapport-Instanzen.

- React-Frontend (Vite/JSX): Landing, Register, Login, Plans, Dashboard
- Node/Express-Backend: Auth (bcrypt+JWT), Stripe-Billing, Provisioning
- HOST-Postgres-Schema: accounts, subscriptions, instances
- Provisioning-Interface + Modell-A-Adapter (Studio im geteilten Stack)
- MOCK-Modus: voller End-to-End-Flow ohne Stripe/Rapport-Stack testbar
- Idempotentes Fulfillment (Upsert auf stripe_subscription_id)
- docker-compose für lokale host-db; identisch auf Hetzner deploybar

E2E lokal verifiziert: Register -> Checkout(mock) -> Instanz -> Idempotenz.

Lizenz: proprietär (kein AGPL-Code eingebunden, nur Netzwerk-API zur Familie).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 15:37:33 +02:00

38 lines
2.0 KiB
Bash

# ─────────────────────────────────────────────────────────────────────────────
# RAPPORT-HOST — Konfiguration
# Kopiere nach .env (lokal) bzw. setze die Werte in der Hetzner-Umgebung.
# .env steht in .gitignore — niemals committen.
# ─────────────────────────────────────────────────────────────────────────────
# ═══ Server ═══
PORT=8787
# Basis-URL, unter der RAPPORT-HOST erreichbar ist (für Stripe-Redirects).
# Lokal: http://localhost:5273 · Prod: https://host.rapport.studio
PUBLIC_BASE_URL=http://localhost:5273
# ═══ Auth ═══
# JWT-Signatur-Secret für HOST-Kundenkonten. openssl rand -hex 32
JWT_SECRET=CHANGE-ME-min-32-zeichen
# ═══ Postgres (eigene HOST-DB, GETRENNT von Kunden-Rapport-Daten) ═══
DATABASE_URL=postgres://rapport_host:rapport_host@localhost:55432/rapport_host
# ═══ Stripe ═══
# Test-Mode-Keys (sk_test_… / pk_test_…) für lokale Entwicklung.
# Live-Keys (sk_live_…) erst in Produktion. Test-Karten: 4242 4242 4242 4242
STRIPE_SECRET_KEY=sk_test_CHANGE-ME
STRIPE_WEBHOOK_SECRET=whsec_CHANGE-ME
# Price-IDs aus dem Stripe-Dashboard (ein Recurring-Price pro Plan).
STRIPE_PRICE_SOLO=price_CHANGE-ME
STRIPE_PRICE_STUDIO=price_CHANGE-ME
STRIPE_PRICE_BUSINESS=price_CHANGE-ME
# ═══ Provisioning (Modell A: geteilter Rapport-Stack) ═══
# Wenn LEER: MOCK-Modus — Instanz wird nur als DB-Eintrag simuliert, der ganze
# Flow ist ohne laufenden Rapport-Stack testbar.
# Wenn gesetzt: echtes Provisioning gegen den geteilten Rapport-Stack.
RAPPORT_API_URL=
RAPPORT_SERVICE_KEY=
# URL-Template für die fertige Kunden-Instanz. {slug} wird ersetzt.
RAPPORT_INSTANCE_URL_TEMPLATE=http://localhost:8080/?studio={slug}