christabor/flask_jsondash

How to specify db password

datdinhquoc opened this issue · 2 comments

I can set CHARTS_DB_HOST but I need to specify username and password as the db server is not on the same server that I run JSONDash.

Is there a way to specify mongodb username and password for the db server at CHARTS_DB_HOST?

I altered this file flask_jsondash/db.py a bit and got the authentication done.

You shouldn't have to hack in there, but rather specify all connection details via environment variables. I'm happy to help get it working the recommended way.