-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix mongo url with user/password #291
Conversation
Co-authored-by: Esa Jokinen <[email protected]>
@gdespres Thanks! |
@P-T-I Testing CveXplore 0.3.33... Could it be that this change breaks it for anyone not using the environment variables?
|
@P-T-I: It was exactly that! Those variables are never
That gives by default: However, setting environment variables explicitly to Therefore, these should probably default to |
Fixes mongo url without user/password after cve-search#291.
@oh2fih Probably need another release for this! Will do this asap! |
Hi !
I'm currently migrating my instance of cve-search from version 4.x to version 5.x and CveExplorer does not allow connecting to a mongodb with a user and password.
I use the environment variables DATASOURCE_HOST, DATASOURCE_USER and DATASOURCE_PASSWORD but they are ignored for the connection to mongodb (only used for mysql)
The code would have to be adapted to take into account DATASOURCE_USER and DATASOURCE_PASSWORD also for the mongodb connection url. Or maybe use DATASOURCE_CONNECTION_DETAILS if defined as an environment variable.
THANKS