mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-06-03 14:50:47 +00:00
Merge remote-tracking branch 'origin/master' into nightly
This commit is contained in:
commit
32645429b2
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 %},
|
"user": {% if MONGODB_USERNAME %}"{{ MONGODB_USERNAME }}"{% else %}None{% endif %},
|
||||||
"password": {% if MONGODB_PASSWORD %}"{{ MONGODB_PASSWORD }}"{% else %}None{% endif %},
|
"password": {% if MONGODB_PASSWORD %}"{{ MONGODB_PASSWORD }}"{% else %}None{% endif %},
|
||||||
# Connection/Authentication
|
# Connection/Authentication
|
||||||
|
"connect": False,
|
||||||
"ssl": {{ MONGODB_USE_SSL }},
|
"ssl": {{ MONGODB_USE_SSL }},
|
||||||
"authsource": "{{ MONGODB_AUTH_SOURCE }}",
|
"authsource": "{{ MONGODB_AUTH_SOURCE }}",
|
||||||
"replicaSet": {% if MONGODB_REPLICA_SET %}"{{ MONGODB_REPLICA_SET }}"{% else %}None{% endif %},
|
"replicaSet": {% if MONGODB_REPLICA_SET %}"{{ MONGODB_REPLICA_SET }}"{% else %}None{% endif %},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user