feat: update README and docker-compose for Kuma monitoring configuration
This commit is contained in:
8
bot.go
8
bot.go
@@ -55,11 +55,11 @@ func main() {
|
||||
}
|
||||
|
||||
// Start Kuma push monitor if configured
|
||||
kumaPushURL := os.Getenv("Kuma-Push-Url")
|
||||
if kumaPushURL != "" {
|
||||
intervalStr := os.Getenv("Kuma-Push-Interval")
|
||||
kumaPushURL, ok := os.LookupEnv("KUMA_PUSH_URL")
|
||||
if ok {
|
||||
intervalStr, ok := os.LookupEnv("KUMA_PUSH_INTERVAL")
|
||||
interval := 60 // default to 60 seconds
|
||||
if intervalStr != "" {
|
||||
if ok && intervalStr != "" {
|
||||
if parsed, err := strconv.Atoi(intervalStr); err == nil && parsed > 0 {
|
||||
interval = parsed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user