Sign inSign up

tyauvil/go-http-echo

By tyauvil

•Updated over 7 years ago

go-http-echo responds to http requests with the request encoded in json

Image
0

1.2K

tyauvil/go-http-echo repository overview

⁠go-http-echo

This app responds to requests with the http request encoded in json.

⁠Configuration

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.
⁠Generate a TLS key/cert
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
⁠Running locally

$ go run main.go

or

$ docker-compose up

Tag summary

Content type

Image

Digest

Size

1.9 MB

Last updated

over 7 years ago

docker pull tyauvil/go-http-echo