forked from prnake/Comment9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
30 lines (30 loc) · 1001 Bytes
/
config.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
process.env.NTBA_FIX_319 = 1;
require("dotenv").config({ path: ".env" });
module.exports = {
port: process.env.PORT || 3000,
mongodb: {
username: process.env.MONGO_USERNAME || null,
password: process.env.MONGO_PASSWORD || null,
host: process.env.MONGO_HOST || "127.0.0.1",
port: process.env.MONGO_PORT || "27017",
database: process.env.MONGO_DATABASE || "Comment9",
},
redis: {
host: process.env.REDIS_HOST || "127.0.0.1",
port: process.env.REDIS_PORT || "6379",
password: process.env.REDIS_PASSWORD || null,
},
session: {
cookieSecrect: process.env.SECRET || "Danmaku",
},
danmaku: {
expire: process.env.EXPIRE_TIME || 5,
default_senders: ["danmaku"],
senders: ["danmaku", "wechat", "telegram", "develop", "export"],
default_filters: ["default"],
filters: ["default", "blacklist"],
},
host: process.env.HOST || "http://localhost:3000",
rootPath: process.env.BASE_URL || "",
inviteCode: process.env.INVITE_CODE || "",
};