-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js.bak
118 lines (100 loc) · 3.59 KB
/
config.js.bak
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
109
110
111
112
113
114
115
116
117
118
/**
* config 这边对项目内容的一个设置
*/
var path = require('path');
var pkg = require('./package.json');
var config = {
debug: false,
name: 'HighHome.org',
description: 'HighHome是和家园网络社区,致力于和家园业主的交流',
version: pkg.version,
// site settings
site_headers: [
'<meta name="author" content="[email protected]" />',
'<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">',
'<meta property="og:site_name" content="Nextdoor">',
'<meta property="og:type" content="website">',
'<meta property="og:url" content="http://highhome.org">',
'<meta property="og:title" content="highhome,和家园网络社区.">',
'<meta property="og:description" content="和家园网络社区">',
'<meta name="author" content="[email protected]">',
'<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">'
],
// google analytics 的内容
host: 'highhome.org',
// 默认的Google tracker ID,自有站点请修改,申请地址:http://www.google.com/analytics/
google_tracker_id: 'UA-41753901-5',
site_logo: '', // default is `name`
site_navs: [
// [ path, title, [target=''] ]
[ '/about', '关于' ],
],
site_static_host: '', // 静态文件存储域名
mini_assets: false, // 静态文件的合并压缩,详见视图中的Loader
site_enable_search_preview: false, // 开启google search preview
site_google_search_domain: 'highhome.org', // google search preview中要搜索的域名
upload_dir: path.join( 'public', 'user_data', 'images'),
//database 地址
db: 'mongodb://127.0.0.1/highhome',
session_secret: 'node_club',
auth_cookie_name: 'node_club',
//监听的服务器端口信息内容
port: 3000,
// 话题列表显示的话题数量
list_topic_count: 10,
// 限制发帖时间间隔,单位:毫秒
post_interval: 10000,
// RSS
rss: {
title: 'Highhome:和家园网上社区',
link: 'http://cnodejs.org',
language: 'zh-cn',
description: 'CNode:Node.js专业中文社区',
//最多获取的RSS Item数量
max_rss_items: 50
},
// site links friend Links
site_links: [
],
// 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': ''
},
],
// mail SMTP 如果需要真的发送邮件,自己这边需要修改对应的email信息,地址和密码。
mail_opts: {
host: 'smtp.163.com', // hostname
secureConnection: true, // use SSL
port: 465, // port for secure SMTP Gmail:465
auth: {
user: '[email protected]',
pass: 'runking163zhang'
}
},
//weibo app key
weibo_key: 10000000,
// admin 可删除话题,编辑标签,设某人为达人
// 相当于这边是社区管理员的设置信息了的
admins: { admin: true,
425629018:true,
425629018:true,
},
// [ { name: 'plugin_name', options: { ... }, ... ]
plugins: [
// { name: 'onehost', options: { host: 'localhost.cnodejs.org' } },
// { name: 'wordpress_redirect', options: {} }
],
GITHUB_OAUTH: {
clientID: 'your GITHUB_CLIENT_ID',
clientSecret: 'your GITHUB_CLIENT_SECRET',
callbackURL: 'http://cnodejs.org/auth/github/callback',
},
//网站是不是可以注册
allow_sign_up: true,
};
//这边是输出的一个端口信息内容设置,让外面的内容可以访问这里边的内容信息
module.exports = config;
module.exports.config = config;