# Enables development mode (default false)
export DEV=false

# Enables debug logging (default false)
export DEBUG=true

# This machine's role: server or client (default client)
export ROLE=$(jq -r .role /srv/secure/config.json)

# This machine's hostname (default client)
export HOSTNAME=$(cat /etc/hostname)

# HTTP domain (default 0.0.0.0)
export BIND=0.0.0.0

# HTTP port (default 3210)
export PORT=3210

# Server's IP address (default 192.168.1.1)
export SERVER_IPV4=192.168.1.1

# Server's port (default 3210)
export SERVER_PORT=3210

# How often to run ROOT_DIR/exec/ctld-runtime (default 30000)
export RUNTIME_UPDATE_INTERVAL_MS=20000

# How often to ping hosts (default 30000)
export NETSTAT_UPDATE_INTERVAL_MS=10000

# Minimum ms between writing to files (default 2000)
export FS_LAG_MS=2000

# Minimum ms between websocket pushes (default 100)
export WS_LAG_MS=100

# Minimum ms between pushing host topology (default 10000)
export HOST_LAG_MS=10000

# Minimum ms between pushes to the server (default 200)
export SERVER_LAG_MS=200

# Ms to wait before trying again when file writes fail (default 5000)
export FS_PENALTY_MS=60000

# Ms to wait before retries when a websocket push fails (default 60000)
export WS_PENALTY_MS=1200

# Ms to wait before retries when the server can't reach hosts (default 3000)
export SERVER_TO_HOST_PENALTY_MS=10000

# Ms to wait before retries when a host can't reach the server (default 3000)
export HOST_TO_SERVER_PENALTY_MS=3000

# Ms to wait before a ctl command fails (default 5000)
export CLIENT_TIMEOUT_MS=5000

# Ms to wait before closing an unresponsive websocket (default 3000)
export WS_SEND_TIMEOUT_MS=3000

# Ms to wait for server to host requests (default 3000)
export SERVER_TO_HOST_TIMEOUT_MS=3000

# Ms to wait for host to server requests (default 3000)
export HOST_TO_SERVER_TIMEOUT_MS=3000

# Root directory (default /opt/control)
export ROOT_DIR=/opt/control

# Hosts directory (default /srv/secure/hosts)
export HOST_DIR=/srv/secure/hosts
