-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
54 lines (43 loc) · 1.02 KB
/
index.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
const path = require('path');
const pkg = require('../package');
const env = require('./env');
const loggerConfig = require('./logger');
const config = {
// package.json
pkg,
// server
env: env.NODE_ENV,
urls: {
api: env.API_URL
},
// app
supportRequestMaxLength: env.SUPPORT_REQUEST_MAX_LENGTH,
logger: loggerConfig,
appName: env.APP_NAME,
appColor: env.APP_COLOR,
twitter: env.TWITTER,
port: 62_893,
// build directory
buildBase: 'build',
// jwt options
jwt: {
secret: env.JWT_SECRET
},
// sse options
sse: {
maxClients: 10_000,
pingInterval: 60_000
},
// store IP address
// <https://github.com/ladjs/store-ip-address>
storeIPAddress: {
ip: 'ip',
lastIps: 'last_ips'
},
// field name for a user's last locale
// (this gets re-used by email-templates and @ladjs/i18n; see below)
lastLocaleField: 'last_locale'
};
// set build dir based off build base dir name
config.buildDir = path.join(__dirname, '..', config.buildBase);
module.exports = config;