feat: add ability to toggle uptime kuma

This commit is contained in:
trafficlunar 2024-11-27 20:29:29 +00:00
parent aaa8640aaf
commit 2a3da71bad
2 changed files with 7 additions and 1 deletions

View file

@ -6,6 +6,8 @@ LASTFM_USERNAME="axolotlmaid"
# API key for last.fm
LASTFM_API_KEY="API_KEY_GOES_HERE"
# Toggle to enable Uptime Kuma
UPTIME_KUMA_ENABLED=false
# URL for Uptime Kuma
UPTIME_KUMA_URL="http://localhost:3001/metrics"
# API key for Uptime Kuma

View file

@ -1,6 +1,10 @@
package worker
import "os"
func StartWorkers() {
go StartLastFMWorker()
if os.Getenv("STATUS") == "true" {
go StartStatusWorker()
}
}