feat: LiveServer-M1 v1 — educational video conferencing platform
Full MVP implementation: - Next.js 16 + React 19 + TypeScript + Tailwind CSS v4 - LiveKit integration (rooms, tokens, webhooks, moderation) - better-auth (email/password, sessions, roles) - Prisma 7 + PostgreSQL (9 models, 3 enums) - 15 API routes (auth, rooms, lobby, chat, files, moderation, hand-raise) - 7 pages (landing, auth, dashboard, join, video room) - SSE-based waiting room with host approval flow - Security: PIN rate limiting, session fingerprint bans, chat/files auth - Python AI Agent (Deepgram STT + OpenAI summarization) - Docker Compose (local + production with Traefik + Let's Encrypt) - Interactive setup script (setup.sh) - Dev protection middleware (DEV_ACCESS_KEY, ALLOWED_IPS) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
36
.env.example
Normal file
36
.env.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# === Domain & SSL (оставь пустым для локалки) ===
|
||||
# DOMAIN=live.example.com
|
||||
# ACME_EMAIL=admin@example.com
|
||||
|
||||
# === Local dev protection (работает когда DOMAIN не задан) ===
|
||||
# Ключ доступа: открой http://192.168.x.x:3000?key=mySecretKey123
|
||||
DEV_ACCESS_KEY=mySecretKey123
|
||||
# Разрешённые IP (через запятую). localhost всегда разрешён.
|
||||
# ALLOWED_IPS=192.168.1.10,192.168.1.11
|
||||
|
||||
# === Database ===
|
||||
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/liveserver
|
||||
POSTGRES_PASSWORD=postgres
|
||||
|
||||
# === LiveKit ===
|
||||
LIVEKIT_URL=wss://your-project.livekit.cloud
|
||||
NEXT_PUBLIC_LIVEKIT_URL=wss://your-project.livekit.cloud
|
||||
LIVEKIT_API_KEY=your-api-key
|
||||
LIVEKIT_API_SECRET=your-api-secret
|
||||
|
||||
# === AI Agent (Python) ===
|
||||
DEEPGRAM_API_KEY=your-deepgram-key
|
||||
OPENAI_API_KEY=your-openai-key
|
||||
|
||||
# === Storage (MinIO/S3) ===
|
||||
S3_ENDPOINT=http://minio:9000
|
||||
S3_ACCESS_KEY=minioadmin
|
||||
S3_SECRET_KEY=minioadmin
|
||||
S3_BUCKET=liveserver
|
||||
MINIO_ROOT_USER=minioadmin
|
||||
MINIO_ROOT_PASSWORD=minioadmin
|
||||
|
||||
# === Auth ===
|
||||
BETTER_AUTH_SECRET=your-secret-key-change-in-production
|
||||
BETTER_AUTH_URL=http://localhost:3000
|
||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||
Reference in New Issue
Block a user