Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration through environment variables #169

Open
demetriusnunes opened this issue Sep 25, 2015 · 4 comments
Open

Allow configuration through environment variables #169

demetriusnunes opened this issue Sep 25, 2015 · 4 comments

Comments

@demetriusnunes
Copy link

This makes it much easier to run inside a docker container.

@bilalmetla
Copy link

I want to resolve this issue. Is there any suggestion to do this task.

@thyb
Copy link
Contributor

thyb commented Apr 12, 2017

Take a look around https://github.com/oauth-io/oauthd/blob/master/src/core/config.coffee. Something like this should do the trick (L11):

config.host_url = config.host_url or process.env['OAUTHD_HOST_URL']
config.port = config.port or process.env['OAUTHD_PORT']
# etc...

https://github.com/oauth-io/oauthd/wiki/Configuration

Thanks for investigating the issue !

@bilalmetla
Copy link

bilalmetla commented Apr 12, 2017

Thanks @thyb
I have got it. How can I start it? Will you make a separate branch for me?

@thyb
Copy link
Contributor

thyb commented Apr 12, 2017

You can fork this repo, work from your branch (with the name you wish) and PR your change: cf https://yangsu.github.io/pull-request-tutorial/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants