-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.example.js
108 lines (106 loc) · 2.04 KB
/
config.example.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
const path = require('path');
const config = {
app: {
url: 'http://127.0.0.1:7777',
cdn: 'http://cdn.animeloop.org',
host: '127.0.0.1',
port: 7777,
},
web: {
seriesPerPage: 18,
},
googleAnalytics: '',
animeloopCli: {
bin: path.join(__dirname, 'bin', 'animeloop-cli'),
},
api: {
version: 'v1',
app: {
host: '0.0.0.0',
port: 7771,
},
},
apiv2: {
app: {
host: '0.0.0.0',
port: 7775,
},
session: {
name: 'animeloop.auth.sid',
secret: '',
redisStore: {
host: '127.0.0.1',
port: '6379',
db: 10,
}
},
},
recaptcha: {
url: 'https://www.google.com/recaptcha/api/siteverify',
secret: '',
},
auth: {
secret: '',
},
mail: {
host: 'smtp.examle.email',
port: 465,
secure: true, // true for 465, false for other ports
auth: {
user: '',
pass: ''
}
},
automator: {
uploadTTL: 5 * 60,
uploadDelay: 3,
animeloopCliDelay: 30,
app: {
url: '/automator',
host: '127.0.0.1',
port: 7778,
auth: {
username: 'admin',
password: 'pass',
},
},
redisN: 0,
whatanime: {
url: 'https://whatanime.ga/api/search',
token: '',
},
anilist: {
id: 'animeloop-123456',
secret: 'animeloop-654321',
},
},
storage: {
dir: {
data: path.join(__dirname, 'storage', 'data'),
upload: path.join(__dirname, 'storage', 'upload'),
raw: path.join(__dirname, 'storage', 'raw'),
autogen: path.join(__dirname, 'storage', 'autogen'),
},
},
mongodb: {
url: 'mongodb://localhost/animeloop',
},
redis: {
host: '127.0.0.1',
port: 6379,
auth: '',
},
bot: {
twitter: {
consumer_key: '...',
consumer_secret: '...',
access_token: '...',
access_token_secret: '...',
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
},
},
netdata: {
url: 'http://127.0.0.1:19999',
},
};
module.exports = config;