【问题标题】:How do I configure Crafter CMS social/profile mongo db connection properties?如何配置 Crafter CMS 社交/个人资料 mongo db 连接属性?
【发布时间】:2017-10-25 02:45:33
【问题描述】:

我需要配置 CrafterCMS 社交/个人资料以使用 SSL 连接到 MongoDb。 我应该配置哪些属性来设置 用户名、密码、sslCAFile、sslPEMKeyFile、sslPEMKeyPassword 等 ? 我正在使用 Crafter CMS 2.5

【问题讨论】:

    标签: mongodb content-management-system crafter-cms


    【解决方案1】:

    对于社交和个人资料,我们在此处支持 Mongodb 连接 URI 配置详细信息 https://docs.mongodb.com/manual/reference/connection-string/

    配置文件的连接属性键:

    crafter.profile.mongodb.connection.newConnectionStr 默认为:

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

    对于 Social 属性键是: studio.social.mongodb.connection.newConnectionStr 并默认为:

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

    【讨论】:

    • /profile|social/extension/mongo.properties 文件中的属性怎么样?我应该删除它吗?
    • 没有 2.5.x 和 3.0 外部属性文件的名称为 crafter/profile/extension/server-config.properties 和 crafter/social/extension/social.propertie
    猜你喜欢
    • 2015-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-10
    相关资源
    最近更新 更多