go-http-echo responds to http requests with the request encoded in json
1.2K
This app responds to requests with the http request encoded in json.
The following are configurable by environment variables:
PORT Defaults to 8080.
TLS_PORT Setting this port also enables TLS.
TLS_CERT Defaults to ./server.crt.
TLS_KEY Defaults to ./server.key.
openssl genrsa -out server.key 2048
openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
$ go run main.go
or
$ docker-compose up
Content type
Image
Digest
Size
1.9 MB
Last updated
over 7 years ago
docker pull tyauvil/go-http-echo