414 B
414 B
Errorlog Handler
Simple go binary that binds to localhost:2342 and has 2 endpoints
/errorlog
expects a json with "script" & "log". Puts that in a nice ntfy message.
{
"script": "$scriptname",
"log": "$log_content"
}
/success
expects a PUT without anything.
Send a "ran successfully" to the server
HowTo
-
config.json
expects server, access token & channel -
Run it.
-
Profit