Yaltopia-Homes-TGAgent/.env.example

61 lines
1.5 KiB
Plaintext

# Telegram Bot Configuration
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
# API Configuration
API_BASE_URL=http://localhost:3000/api
# Monitoring Configuration
# Admin chat IDs (comma-separated)
ADMIN_CHAT_IDS=123456789,987654321
# Supergroup monitoring (optional)
MONITORING_SUPERGROUP_ID=-1001234567890
# Main monitoring topic (receives ALL alerts) - RECOMMENDED
TOPIC_ALL_MONITORING=1
# Optional specific topics (set to 0 or remove to disable)
# If you want alerts to go ONLY to specific topics, don't set TOPIC_ALL_MONITORING
TOPIC_START=2
TOPIC_ERROR=3
TOPIC_BACKEND_FAILS=4
TOPIC_HEALTH=5
TOPIC_DAILY_REPORT=6
TOPIC_INVALID_LOGIN=7
# External monitoring (optional)
MONITORING_WEBHOOK_URL=https://your-monitoring-system.com/webhook
# Email alerts (optional)
EMAIL_ENABLED=false
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USER=your-email@gmail.com
EMAIL_PASS=your-app-password
EMAIL_TO=admin1@company.com,admin2@company.com
# Bot Configuration
BOT_VERSION=1.0.0
NODE_ENV=production
# Monitoring Schedule Configuration (all times in UTC)
# Daily report time (24-hour format: HH:MM)
DAILY_REPORT_TIME=09:00
# Health check interval (in minutes)
HEALTH_CHECK_INTERVAL=5
# Log cleanup interval (in hours)
LOG_CLEANUP_INTERVAL=24
# Log retention (in days)
LOG_RETENTION_DAYS=30
# Memory usage alert threshold (percentage)
MEMORY_ALERT_THRESHOLD=90
# API failure rate alert threshold (percentage)
API_FAILURE_ALERT_THRESHOLD=5
# Invalid login attempts threshold (per hour)
INVALID_LOGIN_THRESHOLD=50