This repository was archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.tpl.js
More file actions
49 lines (49 loc) · 1.4 KB
/
config.tpl.js
File metadata and controls
49 lines (49 loc) · 1.4 KB
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
module.exports = {
general: {
localPluginRoot: './datawrapper/plugins'
},
frontend: {
domain: '<domain>.<tld>',
https: false
},
api: {
port: 3000,
domain: '<domain>.<tld>',
subdomain: '<subdomain>',
sessionID: 'DW-SESSION',
https: false,
enableMigration: false,
cors: ['*'],
/**
* Amount of iterations the hashing algorithm uses. Value should be based on the hardware
* the API server is running on.
*
* Recommendation: A request to /auth/login should take approximately 2s to complete.
*/
hashRounds: 15,
/**
* This key is deprecated and only used for legacy hash comparison.
* https://github.com/datawrapper/datawrapper/blob/master/config.template.yaml#L20.
*
* @deprecated
*/
authSalt: '<MY_AUTH_SALT>',
/**
* This key is deprecated and only used for legacy hash comparison.
* https://github.com/datawrapper/datawrapper/blob/master/config.template.yaml#L21.
*
* @deprecated
*/
secretAuthSalt: '<MY_SECRET_AUTH_KEY>'
},
orm: {
db: {
dialect: 'mysql',
host: '<host>',
port: 3306,
user: '<user>',
password: '<password>',
database: '<database>'
}
}
};