- JWT authentication with Supabase integration - Role-based access control (Admin, Owner, Staff, Auditor) - Universal database adapter (Prisma/Supabase/MongoDB support) - User management with hierarchical permissions - Redis caching service (configured but optional) - Comprehensive API documentation - Production-ready NestJS architecture - Migration scripts for provider switching - Swagger/OpenAPI documentation
24 lines
777 B
Plaintext
24 lines
777 B
Plaintext
# Database - Example PostgreSQL Connection
|
|
DATABASE_URL="postgresql://username:password@localhost:5432/database_name"
|
|
DIRECT_URL="postgresql://username:password@localhost:5432/database_name"
|
|
|
|
# Supabase - Replace with your actual values
|
|
SUPABASE_URL="https://your-project-id.supabase.co"
|
|
SUPABASE_ANON_KEY="your-supabase-anon-key"
|
|
SUPABASE_SERVICE_ROLE_KEY="your-supabase-service-role-key"
|
|
|
|
# JWT - Replace with a strong secret key
|
|
JWT_SECRET="your-jwt-secret-key-change-in-production"
|
|
JWT_EXPIRES_IN="7d"
|
|
|
|
# Redis - Replace with your Redis connection details
|
|
REDIS_HOST="localhost"
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD="your-redis-password"
|
|
|
|
# App
|
|
PORT=3000
|
|
NODE_ENV="development"
|
|
|
|
# Telegram Bot (optional) - Replace with your bot token
|
|
TELEGRAM_BOT_TOKEN="your-telegram-bot-token" |