Added auth functionality, initial work with views and field types
This commit is contained in:
20
backend/.env.example
Normal file
20
backend/.env.example
Normal file
@@ -0,0 +1,20 @@
|
||||
# Central Database (Prisma - stores tenant metadata)
|
||||
CENTRAL_DATABASE_URL="mysql://user:password@platform-db:3306/central_platform"
|
||||
|
||||
# Database Root Credentials (for tenant provisioning)
|
||||
DB_HOST="platform-db"
|
||||
DB_PORT="3306"
|
||||
DB_ROOT_USER="root"
|
||||
DB_ROOT_PASSWORD="root"
|
||||
|
||||
# Encryption Key for Tenant Database Passwords (32-byte hex string)
|
||||
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
||||
ENCRYPTION_KEY="your-32-byte-hex-encryption-key-here"
|
||||
|
||||
# JWT Configuration
|
||||
JWT_SECRET="your-jwt-secret"
|
||||
JWT_EXPIRES_IN="7d"
|
||||
|
||||
# Application
|
||||
NODE_ENV="development"
|
||||
PORT="3000"
|
||||
Reference in New Issue
Block a user