mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
68 lines
1.6 KiB
JavaScript
68 lines
1.6 KiB
JavaScript
/**
|
||
* config
|
||
*/
|
||
|
||
var path = require('path');
|
||
|
||
exports.config = {
|
||
debug: true,
|
||
name: 'Node Club',
|
||
description: 'Node Club 是用Node.js开发的社区软件',
|
||
version: '0.2.2',
|
||
|
||
// site settings
|
||
site_headers: [
|
||
'<meta name="author" content="EDP@TAOBAO" />',
|
||
],
|
||
host: 'localhost.cnodejs.org',
|
||
site_logo: '', // default is `name`
|
||
site_navs: [
|
||
// [ path, title, [target=''] ]
|
||
[ '/about', '关于' ],
|
||
],
|
||
site_static_host: '', // 静态文件存储域名
|
||
site_enable_search_preview: false, // 开启google search preview
|
||
site_google_search_domain: 'cnodejs.org', // google search preview中要搜索的域名
|
||
|
||
upload_dir: path.join(__dirname, 'public', 'user_data', 'images'),
|
||
|
||
db: 'mongodb://127.0.0.1/node_club_dev',
|
||
session_secret: 'node_club',
|
||
auth_cookie_name: 'node_club',
|
||
port: 3000,
|
||
|
||
// 话题列表显示的话题数量
|
||
list_topic_count: 20,
|
||
|
||
// RSS
|
||
rss: {
|
||
title: 'CNode:Node.js专业中文社区',
|
||
link: 'http://cnodejs.org',
|
||
language: 'zh-cn',
|
||
description: 'CNode:Node.js专业中文社区',
|
||
|
||
//最多获取的RSS Item数量
|
||
max_rss_items: 50
|
||
},
|
||
|
||
// 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 },
|
||
|
||
// [ { name: 'plugin_name', options: { ... }, ... ]
|
||
plugins: [
|
||
// { name: 'onehost', options: { host: 'localhost.cnodejs.org' } },
|
||
// { name: 'wordpress_redirect', options: {} }
|
||
]
|
||
};
|