- Parse MAX_USERS from env in registrationConfig - Count total users with new UserRepository.countUsers() - Enforce registration cap in the signup flow - Expose MAX_USERS in docker-compose and env example - Bump frontend version to 2.1.2
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# PostgreSQL Database Configuration
|
|
DB_HOST=localhost
|
|
DB_NAME=edh_stats
|
|
# DB_USER must be a superuser (postgres) to run migrations and create schema objects
|
|
# The default PostgreSQL superuser created by the image is 'postgres'
|
|
DB_USER=postgres
|
|
DB_PASSWORD=edh_password
|
|
# PostgreSQL always uses standard port 5432 (not configurable)
|
|
# DB_SEED: Set to 'true' to automatically seed database with sample data after migrations
|
|
# (development only - not recommended for production)
|
|
DB_SEED=false
|
|
|
|
# Application Configuration
|
|
NODE_ENV=development
|
|
LOG_LEVEL=info
|
|
|
|
# Security
|
|
JWT_SECRET=your-super-secure-jwt-secret-key-change-this-in-production
|
|
|
|
# CORS Configuration
|
|
CORS_ORIGIN=http://localhost:80
|
|
|
|
# User Registration
|
|
ALLOW_REGISTRATION=true
|
|
# Maximum number of users allowed to register (leave empty for unlimited)
|
|
# Only applies if ALLOW_REGISTRATION is true
|
|
MAX_USERS=50
|
|
|
|
# Rate Limiting (optional - default: 100 requests per 15 minutes)
|
|
# RATE_LIMIT_WINDOW defines the time window in MINUTES
|
|
# RATE_LIMIT_MAX defines the maximum number of requests in that window
|
|
# Comment out to use defaults
|
|
RATE_LIMIT_WINDOW=15
|
|
RATE_LIMIT_MAX=100
|
|
|
|
# Optional: Database Connection Pooling (Advanced)
|
|
# DB_POOL_MIN=2
|
|
# DB_POOL_MAX=10
|