{"action":"opened","issue":{"url":"https://api.github.com/repos/movableink/doorman/issues/27","labels_url":"https://api.github.com/repos/movableink/doorman/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/movableink/doorman/issues/27/comments","events_url":"https://api.github.com/repos/movableink/doorman/issues/27/events","html_url":"https://github.com/movableink/doorman/issues/27","id":56146687,"number":27,"title":"Add Doorman config file initialized from environment vars","user":{"login":"pataquets","id":1286254,"avatar_url":"https://avatars.githubusercontent.com/u/1286254?v=3","gravatar_id":"","url":"https://api.github.com/users/pataquets","html_url":"https://github.com/pataquets","followers_url":"https://api.github.com/users/pataquets/followers","following_url":"https://api.github.com/users/pataquets/following{/other_user}","gists_url":"https://api.github.com/users/pataquets/gists{/gist_id}","starred_url":"https://api.github.com/users/pataquets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pataquets/subscriptions","organizations_url":"https://api.github.com/users/pataquets/orgs","repos_url":"https://api.github.com/users/pataquets/repos","events_url":"https://api.github.com/users/pataquets/events{/privacy}","received_events_url":"https://api.github.com/users/pataquets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-01T00:54:03Z","updated_at":"2015-02-01T00:54:03Z","closed_at":null,"body":"As I'm working on dockerizing Doorman, being able to start it loading config from env vars is the easiest and simplest solution and the most flexible.\r\nMy proposal does not involve changing code, but adding a conf.environment.js file to copy as conf.js for scenarios where it is needed.\r\nMost of the config params are covered. It works successfully for me for GitHub auth by running Doorman like this:\r\n```\r\n$ DOORMAN_SECRET=AeV8Thaieel0Oor6shainu6OUfoh3ohwZaemohC0Ahn3guowieth2eiCkohhohG4 DOORMAN_LISTEN_PORT=8085 DOORMAN_GITHUB_REQUIRED_ORGANIZATION=MyOrganization DOORMAN_GITHUB_APPID=my_gh_appid DOORMAN_GITHUB_APPSECRET=my_gh_appsecret DOORMAN_PROXY_HOST=example.com DOORMAN_PROXY_PORT=80 npm start\r\n```"}}