Skip to content

Commit

Permalink
fix: adds mongodb connect=False
Browse files Browse the repository at this point in the history
Adding connect=False to the LMS and CMS' MongoDB connection to prevent
ServerSelectionError after a cluster failover.
  • Loading branch information
viadanna authored and regisb committed Oct 4, 2023
1 parent 44e912b commit 06ad197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/20231003_144841_paulo_mongodb_connect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Improvement] Adds `connect=False` to the LMS and CMS' MongoDB connection to prevent `ServerSelectionError` after a cluster failover. (by @open-craft)
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"user": {% if MONGODB_USERNAME %}"{{ MONGODB_USERNAME }}"{% else %}None{% endif %},
"password": {% if MONGODB_PASSWORD %}"{{ MONGODB_PASSWORD }}"{% else %}None{% endif %},
# Connection/Authentication
"connect": False,
"ssl": {{ MONGODB_USE_SSL }},
"authsource": "{{ MONGODB_AUTH_SOURCE }}",
"replicaSet": {% if MONGODB_REPLICA_SET %}"{{ MONGODB_REPLICA_SET }}"{% else %}None{% endif %},
Expand Down

0 comments on commit 06ad197

Please sign in to comment.