Akagi201
7/31/2017 - 8:00 AM

nodebb.md

MongoDB

  • mongo
  • use admin
  • db.createUser({user:"admin", pwd:"admin", roles:[{role:"readWriteAnyDatabase", db:"admin"}, {role:"userAdminAnyDatabase", db:"admin"}]})
  • use nodebb
  • db.createUser({user: "nodebb", pwd: "nodebb", roles:[{role: "readWrite", db: "nodebb"}, {role: "clusterMonitor", db: "admin"}]})

config.json

{
    "url": "http://10.0.6.22:4567",
    "secret": "xxxxxxxx",
    "database": "mongo",
    "port": 4567,
    "mongo": {
        "host": "10.0.6.22",
        "port": "27017",
        "username": "nodebb",
        "password": "nodebb",
        "database": "nodebb"
    }
}

config

  • GENERAL -> Language: Settings, 简体中文.
  • GENERAL -> Sounds: 顺序勾选.
  • GENERAL -> Social: Post Sharing, 添加 微信 跟 微博.
  • SETTINGS -> General: Site Title: A创, Site Description: 区块链技术社区. Site Keywords: blockchain, bitcoin, ethereum. Site Logo -> Image, Alt Text, Favicon. Homescreen/Touch Icon. Outgoing Links 勾选.
  • SETTINGS -> User: Default User Settings, 勾选 Show email, Open outgoing links in new tab. Subscribe to Digest, Weekly.
  • APPEARANCE -> Skins: Flatly.
  • EXTEND -> Plugins: 激活 nodebb-plugin-dbsearch, nodebb-plugin-spam-be-gone.