Merge remote-tracking branch 'origin/master' into nightly

This commit is contained in:
Overhang.IO 2023-10-04 09:42:26 +00:00
commit 32645429b2
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
[Improvement] Adds `connect=False` to the LMS and CMS' MongoDB connection to prevent `ServerSelectionError` after a cluster failover. (by @open-craft)

View File

@ -12,6 +12,7 @@ mongodb_parameters = {
"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 %},