feat: add ability to toggle uptime kuma
This commit is contained in:
parent
aaa8640aaf
commit
2a3da71bad
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
package worker
|
||||
|
||||
import "os"
|
||||
|
||||
func StartWorkers() {
|
||||
go StartLastFMWorker()
|
||||
if os.Getenv("STATUS") == "true" {
|
||||
go StartStatusWorker()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue