-
Notifications
You must be signed in to change notification settings - Fork 19
/
test.config.ts
68 lines (67 loc) · 1.46 KB
/
test.config.ts
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
import { join } from 'path';
export const config = {
port: 5000,
emailTemplates: {
folder: join(__dirname, '../templates/email')
},
testMode: {
noEmail: true,
debugEmail: false,
oauthDebug: true
},
dbServer: {
protocol: (process.env.COUCH_PROTOCOL || 'http://') as
| 'http://'
| 'https://',
host: process.env.COUCH_HOST || 'localhost:5984',
user: process.env.COUCH_USER || 'admin',
password: process.env.COUCH_PASS || 'password',
userDB: 'sl_test-users',
couchAuthDB: 'sl_test-keys'
},
security: {
disabledRoutes: [],
userActivityLogSize: 10,
passwordResetRateLimit: {
delayMs: 500
}
},
local: {
sendConfirmEmail: true,
sendPasswordChangedEmail: true,
// todo: adjust these three once the old default behaviour works.
usernameLogin: true,
emailUsername: false,
requireEmailConfirm: false,
keepEmailConfirmToken: true,
consents: {
privacy: {
minVersion: 2,
currentVersion: 3,
required: true
},
marketing: {
minVersion: 2,
currentVersion: 3,
required: false
}
}
},
mailer: {
fromEmail: 'me@example.com'
},
userDBs: {
designDocDir: __dirname + '/ddocs',
privatePrefix: 'test'
},
providers: {
facebook: {
clientID: 'FAKE_ID',
clientSecret: 'FAKE_SECRET'
},
twitter: {
consumerKey: 'FAKE_KEY',
consumerSecret: 'FAKE_SECRET'
}
}
};