Overview
Neuron Meet uses environment variables to configure database connections, authentication, server settings, and external services. Copy.env.example to .env and update the values for your environment.
Database Configuration
PostgreSQL connection settings for Prisma.PostgreSQL connection string for the application.For Supabase (Transaction pooler):For local Docker:
Direct PostgreSQL connection string for migrations.For Supabase (Session pooler or direct):For local Docker:
This is used by Prisma for running migrations and schema changes. It should use a direct connection or Session pooler, not Transaction pooler.
Getting Supabase Connection Strings
Open Supabase Dashboard
Navigate to your project at supabase.com
JWT Authentication
JSON Web Token configuration for user authentication.Secret key for signing JWT tokens.Default (development):
Token expiration time. Supports formats like:
7d- 7 days24h- 24 hours60m- 60 minutes3600s- 3600 seconds
7dServer Configuration
Backend server settings.Port number for the NestJS backend server.Default:
3001Node.js environment mode.Options:
development- Development mode with debug loggingproduction- Production mode with optimizationstest- Test environment
developmentFrontend Configuration
Client application settings (Vite environment variables).Backend API base URL for HTTP requests.Development:Production:
Vite environment variables must be prefixed with
VITE_ to be accessible in the client.Backend WebSocket URL for real-time communication.Development:Production:
TURN Server (Optional)
TURN server configuration for NAT traversal in restrictive network environments.TURN server URL for WebRTC connections.Format:Leave empty if not using a TURN server (WebRTC will fall back to STUN only).
Username for TURN server authentication.Leave empty if not using a TURN server.
Password for TURN server authentication.Leave empty if not using a TURN server.
TURN servers are optional but recommended for production to ensure connectivity in restrictive network environments (corporate firewalls, symmetric NATs, etc.).You can use services like:
- Twilio Network Traversal Service
- Xirsys
- Self-hosted coturn