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

Mongodb Authentication #479

Closed
jiahaochua opened this issue Jul 23, 2018 · 1 comment
Closed

Mongodb Authentication #479

jiahaochua opened this issue Jul 23, 2018 · 1 comment

Comments

@jiahaochua
Copy link

Hi,

I've been trying to setup OpenHIM and test it for potential production use in the future, and one thing that I noticed is that it uses the default Mongodb configuration with no authentication for mongodb. Could I check if OpenHIM is able to support authenticated access to mongodb, and if so how I should set it up?

Thanks,
Jiahao

@rcrichton
Copy link
Member

HI, you can use auth to connect to mongo by editing the connection string - https://docs.mongodb.com/manual/reference/connection-string/

The connection string can be set in the OpenHIM config or via the env variable mongo_url. Hope that is what you are looking for.

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

2 participants