add toggle for allowing registrations from the frontend
This commit is contained in:
@@ -9,6 +9,10 @@ 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
|
||||
@@ -21,8 +25,5 @@ MONGO_EXPRESS_PORT=8081
|
||||
# Replace 'your-domain.com' with your actual domain
|
||||
REACT_APP_API_URL=https://your-domain.com/api
|
||||
|
||||
# Alternative: If backend runs on different port/subdomain
|
||||
# REACT_APP_API_URL=https://api.your-domain.com
|
||||
|
||||
# For local testing with containers (no SSL)
|
||||
# REACT_APP_API_URL=http://localhost:5000/api
|
||||
|
||||
Reference in New Issue
Block a user