30 lines
963 B
Plaintext
30 lines
963 B
Plaintext
# Production Environment Configuration
|
|
# Copy this to .env for server deployment
|
|
|
|
# MongoDB Configuration (uses Docker Compose service names)
|
|
MONGODB_HOST=mongodb
|
|
MONGODB_PORT=27017
|
|
MONGODB_DATABASE=scoffer
|
|
|
|
# JWT Secret for Backend (CHANGE THIS IN PRODUCTION!)
|
|
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
|
|
|
# Registration Control
|
|
# Set to 'false' to disable user registration (recommended for production)
|
|
ALLOW_REGISTRATION=false
|
|
|
|
# Port Configuration (customize as needed for your server)
|
|
FRONTEND_PORT=3000
|
|
BACKEND_PORT=5000
|
|
MONGODB_PORT=27017
|
|
MONGO_EXPRESS_PORT=8081
|
|
|
|
# Frontend API URL for server deployment
|
|
# IMPORTANT: This should point to your EXTERNAL domain with HTTPS
|
|
# The reverse proxy handles SSL termination and forwards HTTP to containers
|
|
# Replace 'your-domain.com' with your actual domain
|
|
REACT_APP_API_URL=https://your-domain.com/api
|
|
|
|
# For local testing with containers (no SSL)
|
|
# REACT_APP_API_URL=http://localhost:5000/api
|