You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tony Blyler 343e1fad53 Initial commit providing the basics 10 months ago
config Initial commit providing the basics 10 months ago
LICENSE Initial commit 10 months ago
README.md Initial commit providing the basics 10 months ago
example_config.json Initial commit providing the basics 10 months ago
go.mod Initial commit providing the basics 10 months ago
main.go Initial commit providing the basics 10 months ago

README.md

httpwrap

A simple HTTP server to wrap around shell executions.

Configuration

See the example config and the config.Config structure

Install

Prerequisites

  • Go version >= 1.16

  • export PATH="$(go env GOPATH)/bin:$PATH"

Steps

  1. go install github.com/tblyler/httpwrap@latest

  2. Set CONFIG_FILE_PATH environment variable to the path for your config file. See reference example config

  3. Execute httpwrap

TODO

  • Allow execution of httpwrap to wrap around another command execution like... httpwrap /bin/my-non-http-program. Forwarding kill signals, STDOUT, and STDERR appropriately.

  • Add proper logging & error handling

  • Add support for more config formats

  • Add Makefile

  • Add CI pipeline

  • Make artifacts available for download in "Releases"

  • Add unit tests

  • Stop judging me, I wrote this for my Raspberry Pi