# Path to your Caddyfile CADDYFILE="/etc/caddy/Caddyfile" # Only 2xx/3xx are OK ACCEPT_STATUS_RE='^(2|3)[0-9]{2}$' EXTRA_HEADERS='X-Health-Check: 1' DEFAULT_HEALTH_PATH="/__health" # If some frontends incorrectly return 200 with an error page, # force failure when these keywords appear in the body: ALSO_FAIL_IF_BODY_MATCH="Bad Gateway|502 Bad Gateway|504 Gateway|Application error|Looks like there’s a problem" # Uptime Kuma push URL (monitor type: Push). Example: # KUMA_PUSH_URL="https://status.example.com/api/push/REPLACE_WITH_YOUR_KEY" KUMA_PUSH_URL="" # Only push DOWN events (don’t push UP recoveries) KUMA_ONLY_DOWN="0" # Timeouts CONNECT_TIMEOUT="7" MAX_TIME="15" # Acceptable HTTP code families (regex). Default: 2xx and 3xx ACCEPT_STATUS_RE='^2|3' # Optional: include/exclude regex filters applied to the final URL string # INCLUDE_RE="" # EXCLUDE_RE="" # Optional: newline-separated extra URLs to check (in addition to what’s parsed from Caddyfile) # EXTRA_SITES_FILE="/etc/caddy/extra_sites.txt" # curl binary (if you need a specific path) # CURL_BIN="/usr/bin/curl" # Custom UA USER_AGENT="CaddyHealthCheck/1.0" # Parse @name host ... matchers too (1=yes, 0=no) PARSE_HOST_MATCHERS="1" # Force HTTP/1.1 for some hosts (regex on full URL) # FORCE_HTTP1_RE='gc\.noxs\.me|kasm\.noxs\.me' # Allow self-signed/backend certs (regex) # INSECURE_TLS_RE='kasm\.noxs\.me|printer\.noxs\.me|sip\.noxs\.me' # Map host → health path (space-separated KEY=VALUE) # Example: # HEALTH_PATHS="gc.noxs.me=/healthz kasm.noxs.me=/api/health" # Quick hints on failure (DNS/TCP) DIAG="1" # Optionally restrict scope # INCLUDE_RE="\\.noxs\\.me$" # only *.noxs.me # EXCLUDE_RE="\\.(be)$|\\*\\." # drop *.be and any wildcard