mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
50 lines
1.0 KiB
JavaScript
50 lines
1.0 KiB
JavaScript
/**
|
|
* config
|
|
*/
|
|
|
|
exports.config = {
|
|
name: 'Node Club',
|
|
description: 'Node Club 是用Node.js开发的社区软件',
|
|
version: '0.2.0',
|
|
|
|
// site settings
|
|
site_headers: [
|
|
'<meta name="author" content="慕远@TaoBao" />',
|
|
],
|
|
host: 'http://127.0.0.1', // host 结尾不要添加'/'
|
|
site_logo: '', // default is `name`
|
|
site_navs: [
|
|
// [ path, title, [target=''] ]
|
|
[ '/about', '关于' ],
|
|
],
|
|
|
|
db: 'mongodb://127.0.0.1/node_club',
|
|
session_secret: 'node_club',
|
|
auth_cookie_name: 'node_club',
|
|
port: 80,
|
|
|
|
// 话题列表显示的话题数量
|
|
list_topic_count: 20,
|
|
|
|
// mail SMTP
|
|
mail_port: 25,
|
|
mail_user: 'club',
|
|
mail_pass: 'club',
|
|
mail_host: 'smtp.126.com',
|
|
mail_sender: 'club@126.com',
|
|
mail_use_authentication: true,
|
|
|
|
//weibo app key
|
|
weibo_key: 10000000,
|
|
|
|
// admin 可删除话题,编辑标签,设某人为达人
|
|
admins: { admin: true },
|
|
|
|
// [ [ plugin_name, options ], ... ]
|
|
plugins: []
|
|
};
|
|
|
|
var host = exports.config.host;
|
|
if (host[host.length - 1] === '/') {
|
|
exports.config.host = host.substring(0, host.length - 1);
|
|
} |