Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure Crafter CMS social/profile mongo db connection properties?

I need to configure CrafterCMS social/profile to connect to a MongoDb using SSL. What properties should I configure to set username, password, sslCAFile, sslPEMKeyFile,sslPEMKeyPassword, etc ? I'm using Crafter CMS 2.5

like image 239
Jonnathan Mendez Avatar asked May 24 '17 16:05

Jonnathan Mendez


1 Answers

For both Social and Profile we support Mongodb Connection URI configuration detail here https://docs.mongodb.com/manual/reference/connection-string/

The connection property key for Profile:

crafter.profile.mongodb.connection.newConnectionStr which defaults to:

mongodb://localhost:27017/crafterprofile?readPreference=primary\ &maxPoolSize=150&minPoolSize=50&maxIdleTimeMS=1000&waitQueueMultiple=200&waitQueueTimeoutMS=1000&w=1&journal=true

For Social property key is: studio.social.mongodb.connection.newConnectionStr and defaults to:

mongodb://localhost:27017/craftersocial?readPreference=primary\ &maxPoolSize=150&minPoolSize=50&maxIdleTimeMS=1000&waitQueueMultiple=200&waitQueueTimeoutMS=1000&w=1&journal=true

like image 111
Cortiz Avatar answered Sep 19 '22 00:09

Cortiz