# Health Check Configuration
# Configuration file for tunnel health monitoring

# Check interval (seconds)
CHECK_INTERVAL=60

# Timeout for connectivity checks (seconds)
CONNECTIVITY_TIMEOUT=10

# Number of retries before alerting
RETRY_COUNT=3

# Log file location
LOG_FILE=/var/log/cloudflared-monitor.log

# Alert configuration
ALERT_ENABLED=true
ALERT_EMAIL=
ALERT_WEBHOOK=

# Tunnels to monitor
TUNNELS=("ml110" "r630-01" "r630-02")

# Domain mappings
declare -A TUNNEL_DOMAINS=(
    ["ml110"]="ml110-01.d-bis.org"
    ["r630-01"]="r630-01.d-bis.org"
    ["r630-02"]="r630-02.d-bis.org"
)

# IP mappings
declare -A TUNNEL_IPS=(
    ["ml110"]="192.168.11.10"
    ["r630-01"]="192.168.11.11"
    ["r630-02"]="192.168.11.12"
)

# Service names
declare -A TUNNEL_SERVICES=(
    ["ml110"]="cloudflared-ml110"
    ["r630-01"]="cloudflared-r630-01"
    ["r630-02"]="cloudflared-r630-02"
)

