Files
RAPPORT-HOST/.env.example
T
karim 13173dddc5 refactor: RAPPORT-HOST ist jetzt reines Backend
Das Frontend (Marketing + Login/Konto) ist in RAPPORT-WEBSITE umgezogen
(Hugo + Vanilla-JS). RAPPORT-HOST liefert dessen gebautes public/ statisch
aus und stellt /api bereit.

- server/index.js: serviert RAPPORT-WEBSITE/public + /api (eine Origin)
- server/env.js: websitePublicDir (WEBSITE_PUBLIC_DIR, Default Schwester-Repo);
  PUBLIC_BASE_URL Default auf einheitliche Origin :8787
- billing.js: Checkout-Redirects auf /konto/ bzw. /hosting-preise/
- entfernt: src/ (React), marketing/ (Hugo-Kopie), index.html, vite.config.js
- package.json: nur noch server/migrate/build:website-Scripts

E2E verifiziert: /, /hosting/, /login/, /konto/, /js + Font = 200;
register→checkout(mock)→Instanz; Redirect → /konto/?provisioned=1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 16:41:09 +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:8787 · Prod: https://host.rapport.studio
PUBLIC_BASE_URL=http://localhost:8787
# ═══ 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}