# ============================================================================= # Failover-Agent Configuration # ============================================================================= # Primary server (the one we monitor) PRIMARY_HOST=server-a.internal PRIMARY_HEALTH_PORT=8080 # PostgreSQL credentials (for pg_promote) PG_HOST=localhost PG_PORT=5432 PG_USER=adminomnioil PG_PASSWORD=admin123 PG_DB=omnioil # Docker Compose project COMPOSE_DIR=/opt/omnioil COMPOSE_FILE=docker-compose.yml # Telegram notifications TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 TELEGRAM_CHAT_ID=-1001234567890 # Email (SMTP) notifications SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=alerts@omnioil.app SMTP_PASS=app_password_here NOTIFY_EMAIL=admin@omnioil.com # MinIO lock (split-brain prevention) MINIO_ENDPOINT=http://minio:9000 MINIO_ACCESS_KEY=admin_s3 MINIO_SECRET_KEY=minio_secret_here LOCK_BUCKET=anh-reports # Behavior CHECK_INTERVAL=10 FAIL_THRESHOLD=12 HEALTH_TIMEOUT=5