41 lines
756 B
Plaintext
41 lines
756 B
Plaintext
# Server Configuration
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
ALLOWED_ORIGINS=http://localhost:3000,https://myapp.com
|
|
|
|
# Database Configuration
|
|
DB_HOST=localhost
|
|
DB_USER=postgres
|
|
DB_PASSWORD=yourpassword
|
|
DB_NAME=mycrm
|
|
DB_PORT=5432
|
|
DB_SSL=false
|
|
DB_MAX_POOL=10
|
|
DB_IDLE_TIMEOUT=10000
|
|
DB_CONNECTION_TIMEOUT=2000
|
|
|
|
# JWT Configuration
|
|
JWT_SECRET=your-super-secret-key-here
|
|
JWT_EXPIRES_IN=1h
|
|
JWT_REFRESH_SECRET=your-refresh-token-secret-here
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FILE_PATH=./logs
|
|
LOG_MAX_SIZE=10m
|
|
LOG_MAX_FILES=7d
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# Security
|
|
SECURE_COOKIE=true
|
|
CSP_POLICY="default-src 'self'"
|
|
BCRYPT_SALT_ROUNDS=12
|
|
|
|
# Monitoring
|
|
SENTRY_DSN=your-sentry-dsn
|
|
APM_SERVICE_NAME=mycrm
|