forked from cnodejs/nodeclub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.default.js
108 lines (94 loc) · 2.55 KB
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
* 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
},
// site links
site_links: [
{
'text': 'Node 官方网站',
'url': 'http://nodejs.org/'
},
{
'text': 'Node Party',
'url': 'http://party.cnodejs.net/'
},
{
'text': 'Node 入门',
'url': 'http://nodebeginner.org/index-zh-cn.html'
},
{
'text': 'Node 中文文档',
'url': 'http://docs.cnodejs.net/cman/'
}
],
// sidebar ads
side_ads: [
{
'url': 'http://www.upyun.com/?utm_source=nodejs&utm_medium=link&utm_campaign=upyun&md=nodejs',
'image': 'http://site-cnode.b0.upaiyun.com/images/upyun_logo.png',
'text': ''
},
{
'url': 'http://ruby-china.org/?utm_source=nodejs&utm_medium=link&utm_campaign=upyun&md=nodejs',
'image': 'http://site-cnode.b0.upaiyun.com/images/ruby_china_logo.png',
'text': ''
},
{
'url': 'http://adc.taobao.com/',
'image': 'http://adc.taobao.com/bundles/devcarnival/images/d2_180x250.jpg',
'text': ''
}
],
// mail SMTP
mail_opts: {
host: 'smtp.126.com',
port: 25,
auth: {
user: '[email protected]',
pass: 'club'
}
},
//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: {} }
]
};