This repository has been archived by the owner on Oct 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.default.js
168 lines (140 loc) · 4.9 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/**
* config
*/
var path = require('path');
var config = {
// debug 为 true 时,用于本地调试
debug: process.env.NODE_ENV==='production'?false:true,
get mini_assets() { return !this.debug; }, // 是否启用静态文件的合并压缩,详见视图中的Loader
name: 'Guild Wars 2 Brasil', // 社区名字
description: 'Fórum Guild Wars 2 Brasil', // 社区的描述
keywords: 'guild wars 2, brasil, brazil, forum',
// 添加到 html head 中的信息
site_headers: [
'<meta name="author" content="[email protected]" />'
],
site_logo: '/public/images/logo.png', // default is `name`
// Generator for favicons: http://www.favicon-generator.org
site_icons: {
apple: [
{sizes: "57x57", href: "/public/images/apple-icon-57x57.png"},
{sizes: "60x60", href: "/public/images/apple-icon-60x60.png"},
{sizes: "72x72", href: "/public/images/apple-icon-72x72.png"},
{sizes: "114x114", href: "/public/images/apple-icon-114x114.png"},
{sizes: "120x120", href: "/public/images/apple-icon-120x120.png"},
{sizes: "144x144", href: "/public/images/apple-icon-144x144.png"},
{sizes: "152x152", href: "/public/images/apple-icon-152x152.png"},
{sizes: "180x180", href: "/public/images/apple-icon-180x180.png"}
],
android: [
{sizes: "192x192", href: "/public/images/android-icon-192x192.png"}
],
favicon: [
{sizes: "32x32", href: "/public/images/favicon-32x32.png"},
{sizes: "96x96", href: "/public/images/favicon-96x96.png"},
{sizes: "16x16", href: "/public/images/favicon-16x16.png"}
],
ms: {href: "/public/images/ms-icon-144x144.png"}
},
site_color: '#170600',
site_manifest: '/public/manifest.json',
// 右上角的导航区
site_navs: [
// 格式 [ path, title, [target=''] ]
['/about', 'Quem Somos']
],
// cdn host,如 http://cnodejs.qiniudn.com
site_static_host: '', // 静态文件存储域名
// 社区的域名
host: 'localhost',
// 默认的Google tracker ID,自有站点请修改,申请地址:http://www.google.com/analytics/
google_tracker_id: '',
// 默认的cnzz tracker ID,自有站点请修改
cnzz_tracker_id: '',
// mongodb 配置
db: 'mongodb://127.0.0.1/node_club_dev',
// redis 配置,默认是本地
redis_host: '127.0.0.1',
redis_port: 6379,
redis_db: 0,
redis_pass: '',
session_secret: 'gw2brreborn', // 务必修改
auth_cookie_name: 'gw2brreborn',
port: process.env.PORT || 8080,
ip: process.env.IP || '0.0.0.0',
// 话题列表显示的话题数量
list_topic_count: 20,
// RSS配置
rss: {
title: 'Guild Wars 2 Brasil',
link: 'http://www.guildwars2brasil.com.br',
language: 'pt-br',
description: 'Fórum da Comunidade Brasileira de Guild Wars 2',
//最多获取的RSS Item数量
max_rss_items: 50
},
// 邮箱配置
mail_opts: {
host: 'smtp.126.com',
port: 25,
auth: {
user: '[email protected]',
pass: 'club'
}
},
//weibo app key
weibo_key: 10000000,
weibo_id: 'your_weibo_id',
// admin 可删除话题,编辑标签。把 user_login_name 换成你的登录名
admins: { user_login_name: true },
// github 登陆的配置
GITHUB_OAUTH: {
clientID: 'your GITHUB_CLIENT_ID',
clientSecret: 'your GITHUB_CLIENT_SECRET',
callbackURL: 'http://cnodejs.org/auth/github/callback'
},
// 是否允许直接注册(否则只能走 github 的方式)
allow_sign_up: true,
// oneapm 是个用来监控网站性能的服务
oneapm_key: '',
// 下面两个配置都是文件上传的配置
// 7牛的access信息,用于文件上传
qn_access: {
accessKey: 'your access key',
secretKey: 'your secret key',
bucket: 'your bucket name',
origin: 'http://your qiniu domain',
// 如果vps在国外,请使用 http://up.qiniug.com/ ,这是七牛的国际节点
// 如果在国内,此项请留空
uploadURL: 'http://xxxxxxxx',
},
// 文件上传配置
// 注:如果填写 qn_access,则会上传到 7牛,以下配置无效
upload: {
path: process.env.OPENSHIFT_DATA_DIR || path.join(__dirname, 'public/upload/'),
url: '/public/upload/'
},
file_limit: '1MB',
// 版块
tabs: [
['geral', 'geral'],
['duvidas', 'dúvidas'],
['guildas', 'guildas'],
['pvp', 'pvp'],
['pve', 'pve'],
['off-topic', 'off-topic']
],
// 极光推送
jpush: {
appKey: 'YourAccessKeyyyyyyyyyyyy',
masterSecret: 'YourSecretKeyyyyyyyyyyyyy',
isDebug: false,
},
create_post_per_day: 1000, // 每个用户一天可以发的主题数
create_reply_per_day: 1000, // 每个用户一天可以发的评论数
visit_per_day: 1000, // 每个 ip 每天能访问的次数
};
if (process.env.NODE_ENV === 'test') {
config.db = 'mongodb://127.0.0.1/node_club_test';
}
module.exports = config;