mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-13 21:27:25 +08:00
introduce uptime monitor for easytier public nodes (#1250)
This commit is contained in:
21
easytier-contrib/easytier-uptime/.env.production
Normal file
21
easytier-contrib/easytier-uptime/.env.production
Normal file
@@ -0,0 +1,21 @@
|
||||
# Production Environment Configuration
|
||||
SERVER_HOST=0.0.0.0
|
||||
SERVER_PORT=8080
|
||||
DATABASE_PATH=/var/lib/easytier-uptime/uptime.db
|
||||
DATABASE_MAX_CONNECTIONS=20
|
||||
HEALTH_CHECK_INTERVAL=30
|
||||
HEALTH_CHECK_TIMEOUT=10
|
||||
HEALTH_CHECK_RETRIES=3
|
||||
RUST_LOG=info
|
||||
LOG_LEVEL=info
|
||||
CORS_ALLOWED_ORIGINS=https://yourdomain.com
|
||||
CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS
|
||||
CORS_ALLOWED_HEADERS=content-type,authorization
|
||||
NODE_ENV=production
|
||||
API_BASE_URL=/api
|
||||
ENABLE_COMPRESSION=true
|
||||
ENABLE_CORS=true
|
||||
|
||||
# Security
|
||||
SECRET_KEY=your-secret-key-here
|
||||
JWT_SECRET=your-jwt-secret-here
|
||||
Reference in New Issue
Block a user