add toggle for allowing registrations from the frontend

This commit is contained in:
2025-08-10 13:36:07 +01:00
parent b790b3bd76
commit a53c50b8b4
4 changed files with 294 additions and 3 deletions

View File

@@ -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