adamdecaf / horizon

A bunch of golang code that doesn't quite fit together yet
0 stars 0 forks source link

configs: Introduce some always-.gitignore'd file for secrets #10

Closed adamdecaf closed 8 years ago

adamdecaf commented 8 years ago

It's a bit of a pain to work around the ./bin/run.sh script to hide away secrets such as api keys. We could use some existing solution, but those often seem complex. What we could do is have some config.go file which reads from a .horizon file (.gitignore'd) and then falls back to env variables.

.horizon

REDDIT_PASSWORD=<line>
TWITTER_API_SECRET=<line>