Original
This commit is contained in:
18
.env.example
Normal file
18
.env.example
Normal file
@@ -0,0 +1,18 @@
|
||||
# Server
|
||||
PORT=3001
|
||||
JWT_SECRET=your-secure-random-secret-key-here
|
||||
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
|
||||
|
||||
# Database (PostgreSQL)
|
||||
DATABASE_URL=postgresql://user:password@localhost:5432/vortex
|
||||
|
||||
# Message encryption (AES-256-GCM) — 64-char hex key (32 bytes)
|
||||
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
||||
# WARNING: if you lose this key, all encrypted messages become unreadable!
|
||||
ENCRYPTION_KEY=
|
||||
|
||||
# TURN server for voice/video calls (optional, recommended for production)
|
||||
# Install coturn: sudo apt install coturn
|
||||
# TURN_URL=turn:your-domain.com:3478
|
||||
# TURN_SECRET=your-coturn-shared-secret
|
||||
# STUN_URLS=stun:stun.l.google.com:19302,stun:stun1.l.google.com:19302
|
||||
Reference in New Issue
Block a user