mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-05 23:20:40 +00:00
fix: adds mongodb connect=False
Adding connect=False to the LMS and CMS' MongoDB connection to prevent ServerSelectionError after a cluster failover.
This commit is contained in:
parent
44e912b239
commit
06ad1978a4
1
changelog.d/20231003_144841_paulo_mongodb_connect.md
Normal file
1
changelog.d/20231003_144841_paulo_mongodb_connect.md
Normal 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)
|
@ -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 %},
|
||||
|
Loading…
Reference in New Issue
Block a user