Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Latest commit

 

History

History
52 lines (35 loc) · 1.14 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.14 KB

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