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

A tiny server to let environment variables go as JSON.

License

Notifications You must be signed in to change notification settings

MathHubInfo/LetIt.Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tiny server to let environment variables go as JSON.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published