This commit is contained in:
seb
2026-07-07 20:02:01 +02:00
parent 80b1d2e147
commit 43475ebff3
9 changed files with 221 additions and 149 deletions

16
.env.example Normal file
View File

@@ -0,0 +1,16 @@
# Endpoints to monitor
# Use the prefix ENDPOINT_ followed by an identifier (e.g., 1, 2, MAIN, API)
# Example 1: Monitor an HTTP endpoint and check if the JSON response has a specific attribute
ENDPOINT_1_URL=http://example.com/api/health
ENDPOINT_1_EXPECT_JSON_ATTR=status
# Example 2: Monitor an HTTPS endpoint and check if the raw response contains a specific substring
ENDPOINT_2_URL=https://another.com/
ENDPOINT_2_EXPECT_SUBSTRING="All systems operational"
# Optional: You can specify a custom poll interval per endpoint in seconds (defaults to 60)
# ENDPOINT_1_POLL_S=30
# Original fallback variable (optional)
# TSE_URL=http://3.78.227.48:20001/