HTTP multi server - allows you to execute shell commands, write or read files, list files, watch filesystem changes over websocket...
Multithreaded, uses Mongoose.ws c++ web server
by default runs on http://localhost:8742
and websocket version on ws://localhost:8743
See commands section.
Execute ./build.sh
Then you can run ./server
/ls/<path>
List Files in path
eg: /ls//data/test
would list all files & folders in "/data/test"
/ls-d/<path>
list only folders
/ls-f/<path>
list only files
/readfile/<path>
read file data (any file type), returned as appropriate mime type in response.
/shell/<command>
execute shell command
eg: /shell/ls /data
would execute ls /data
/writefile/<path>
write request body to specified file
/bash
Executes request body as bash (.sh) script.
Globbing and everything else works, unlike /shell
/shell
Executes request body as (one line) shell command.