- Structured logging: replace log.* with log/slog JSON output across backend - Request logger middleware: logs method, path, status, duration for all non-health requests - Rate limiting: token bucket (5 req/min, burst 10) on AI endpoints (/api/ai/*) - Integration tests: full critical path test (auth -> create case -> add deadline -> dashboard) - Seed demo data: 1 tenant, 5 cases with deadlines/appointments/parties/events - docker-compose.yml: add all required env vars (DATABASE_URL, SUPABASE_*, ANTHROPIC_API_KEY) - .env.example: document all env vars including DATABASE_URL and CalDAV note
19 lines
480 B
Plaintext
19 lines
480 B
Plaintext
# KanzlAI Environment Variables
|
|
# Copy to .env and fill in values: cp .env.example .env
|
|
|
|
# Backend
|
|
PORT=8080
|
|
DATABASE_URL=postgresql://user:pass@host:5432/dbname
|
|
|
|
# Supabase (required for database + auth)
|
|
SUPABASE_URL=https://your-project.supabase.co
|
|
SUPABASE_ANON_KEY=
|
|
SUPABASE_SERVICE_KEY=
|
|
SUPABASE_JWT_SECRET=
|
|
|
|
# Claude API (required for AI features)
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# CalDAV (configured per-tenant in tenant settings, not env vars)
|
|
# See tenant.settings.caldav JSON field
|