30 lines
414 B
Markdown
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
|