1 | module.exports = {
|
2 | // service port
|
3 | port: 80,
|
4 |
|
5 | // mongodb config
|
6 | proDatabase: {
|
7 | gigs:'mongodb://43.239.158.182/sampsite',
|
8 | tencent:'mongodb://139.199.207.77/sampsite'
|
9 | },
|
10 | devDatabase: 'mongodb://127.0.0.1/sampsite',
|
11 |
|
12 | // jwt encryption secret
|
13 | jwtSecret: 'jwt',
|
14 |
|
15 | // default Room
|
16 | defaultRoom: 'MoonLight',
|
17 |
|
18 | // qiniu CDN config.
|
19 | // 七牛CDN配置
|
20 | // optional, and if you do not have the configuration, the file will be saved on the local disk
|
21 | // 选填, 如果你没有配置, 文件会保存在本地磁盘上
|
22 | accessKey: 'qiniu_access_key',
|
23 | secretKey: 'qiniu_secret_key',
|
24 | bucket: 'bucket_name',
|
25 | bucketUrl: 'bucket_url',
|
26 |
|
27 | // Maximum message length
|
28 | // 消息最大长度
|
29 | maxMessageLength: 1024,
|
30 |
|
31 | // Maximum number of groups that can be created by each user
|
32 | // 每个用户最多可以创建的群组个数
|
33 | maxGroupNumber: 2,
|
34 |
|
35 | // New users use random avatars. You need to install ImageMagick first
|
36 | // 新建用户使用随机头像, 需要先安装ImageMagick
|
37 | useRandomAvatar: false,
|
38 |
|
39 | // Default group avatar url.
|
40 | // 默认群组头像链接
|
41 | defaultGroupAvatar: '/static/default_group_avatar.png',
|
42 | // Default user avatar url. If use random avatar, you do not need this configuration
|
43 | // 默认用户头像链接, 如果使用随机头像则不需要该项配置
|
44 | defaultUserAvatar: '/static/default_user_avatar.png',
|
45 | };
|