创建新工程
This commit is contained in:
59
.env.production
Normal file
59
.env.production
Normal file
@@ -0,0 +1,59 @@
|
||||
# AI Town Game Production Environment Configuration
|
||||
|
||||
# Server Configuration
|
||||
NODE_ENV=production
|
||||
PORT=8080
|
||||
ADMIN_PORT=8081
|
||||
|
||||
# Security
|
||||
ADMIN_TOKEN=your-secure-admin-token-here
|
||||
SESSION_SECRET=your-secure-session-secret-here
|
||||
|
||||
# Database Configuration
|
||||
DATA_DIR=./data
|
||||
BACKUP_DIR=./data/backups
|
||||
LOG_DIR=./logs
|
||||
|
||||
# Network Configuration
|
||||
CORS_ORIGIN=https://your-domain.com
|
||||
WEBSOCKET_ORIGIN=wss://your-domain.com
|
||||
|
||||
# Performance Settings
|
||||
MAX_CONNECTIONS=100
|
||||
HEARTBEAT_INTERVAL=30000
|
||||
HEARTBEAT_TIMEOUT=60000
|
||||
AUTO_SAVE_INTERVAL=300000
|
||||
|
||||
# Monitoring
|
||||
ENABLE_METRICS=true
|
||||
METRICS_PORT=9090
|
||||
LOG_LEVEL=info
|
||||
|
||||
# Backup Settings
|
||||
AUTO_BACKUP=true
|
||||
BACKUP_INTERVAL=3600000
|
||||
BACKUP_RETENTION_DAYS=7
|
||||
|
||||
# Rate Limiting
|
||||
RATE_LIMIT_WINDOW=60000
|
||||
RATE_LIMIT_MAX_REQUESTS=100
|
||||
|
||||
# SSL/TLS (if using HTTPS)
|
||||
SSL_CERT_PATH=/etc/ssl/certs/cert.pem
|
||||
SSL_KEY_PATH=/etc/ssl/private/key.pem
|
||||
|
||||
# Redis Configuration (if using Redis for session storage)
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# Email Configuration (for alerts)
|
||||
SMTP_HOST=smtp.your-provider.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your-email@domain.com
|
||||
SMTP_PASS=your-email-password
|
||||
ALERT_EMAIL=admin@your-domain.com
|
||||
|
||||
# CDN Configuration (if using CDN)
|
||||
CDN_URL=https://cdn.your-domain.com
|
||||
STATIC_URL=https://static.your-domain.com
|
||||
Reference in New Issue
Block a user