Hapttic -> Some improvements and functions
Hello, @jsoendermann
First of all, I want to thank You for this project. It's great application for cheapest automation. I've found that hapttic can have a more flexible with multiple scripts and rootPath's.
I've made a some changes to make hapttic more flexible.
- config via yaml
- multiple scripts
- fast run with predefined script
If You not against I can make a Pull request to merge this improvements. But it's my first experience with Golang. :)
I've been using hapttic for some time and your improvements sound great!
Could you possibly also look into scripts not returning anything if they're waiting too long?
Also, a way to run a script in the background would be amazing!
For example let's say you need to run a longer task and then make a callback somewhere from the script, this would do wonders.
@barrelltitor Feature with some timeout can be done, it's not so hard to imlpement.
What about async working with background scripts - it's more harder to do. You need more components, e.g. database (mariadb, redis) and script will write result to DB and hapttic will read from it.
By the way, I have pushed changes to fork: https://github.com/timonych/hapttic
The improvements have been working great, but I have a 500kb body that I'm trying to send and it'll throw an error 500 e.g
curl -X POST http://localhost:8080/staffreport -d @./debugRandomJsonData.json 500 Internal Server Error
I am calling the IP and port directly without any other proxies in front when testing this