Sign inSign up

mathhub/letitgo

By mathhub

•Updated almost 8 years ago

A tiny server to let environment variables go as JSON.

Image
0

100K+

mathhub/letitgo repository overview

⁠letit.go

A tiny server to let environment variables go as JSON.

⁠Usage

Usage of ./letit:
  -bind string
        address to bind to (default "0.0.0.0:3000")
  -path string
        server path to serve the resulting json on (default "/")
  -vars string
        comma-seperated list of variables and globs to use

⁠Examples

To expose only the home variable on port 80

./letit -bind 127.0.0.1:80 -vars HOME

To expose all variables starting with LC on port 8080

./letit -bind 127.0.0.1:80 -vars 'LC*'

⁠Tests

Build Status

Travis Tests check if the project builds.

⁠Docker

A from scratch⁠ Dockerfile exists. This is on DockerHub as an automated build mathhub/letitgo⁠.

By default, it will expose 3000. The environment variables to be exposed can be specified as arguments. For example:

      docker run --rm -p 3000:3000 -e HELLO=world -e ANSWER=42 mathhub/letitgo 'HELLO,ANSWER'

⁠License

Public Domain / Unlicense

Tag summary

Content type

Image

Digest

Size

3.3 MB

Last updated

almost 8 years ago

docker pull mathhub/letitgo