Files
forkmessager/.env.example
Халимов Рустам b4b4b8e0d3 Original
2026-03-10 21:11:59 +03:00

19 lines
723 B
Plaintext

# 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