errorhandler/README.MD
Thies Mueller 3943edd52a
Some checks failed
Build Go Project / build (push) Failing after 1m31s
initial commit
2024-11-04 16:50:20 +01:00

30 lines
414 B
Markdown

# 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