-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.default.js
74 lines (61 loc) · 2.05 KB
/
config.default.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
module.exports = {
configPath: '.',
configFile: 'config.default.js',
// External server uri
serverUri: 'https://localhost:7070',
port: '7070',
// Single-user configuration
multiuser: false,
root: './data/singleuser/', // User data directory
// Multi-user configuration
// multiuser: true,
// root: './data/multiuser/',
// Location of user database and authentication related config dbs
dbPath: './data/db/',
// Mount server on this url path (soon to be deprecated)
mount: '/',
// true - enables authentication and access control system
webid: true,
// Authentication override - for debugging purposes. Uncomment to
// force authentication to always use this username
// forceUser: 'https://localhost:8443/web#id',
// Location of the SSL certificate private key and certificate chain
sslKey: './certificates/localhost.privkey.pem',
sslCert: './certificates/localhost.fullchain.pem',
// Optional email settings (these enable the sending of 'account created'
// and account recovery emails
// email: {
// host: 'smtp.mailtrap.io', // mailtrap.io is only used as an example
// port: '2525',
// secure: false,
// auth: {
// user: '',
// pass: ''
// }
// },
/**
* Feature Flags
*/
features: {
// Is creation of new accounts enabled? Locks the /register endpoint
allowAccountCreation: true,
// Register a wallet for new users, during account creation?
registerWalletOnSignup: true,
// Deployment:
chapiMediator: 'https://authn.io/mediator',
// Local Development:
// chapiMediator: 'https://authorization.localhost:33443/mediator',
// Provision a DID and corresponding keys on account creation?
provisionDidOnSignup: true
},
server: {
// A name for your server (not required)
name: '',
// A description of your server (not required)
description: '',
// A logo that represents you, your brand, or your server (not required)
logo: '',
// The support email you provide for your users (not required)
supportEmail: ''
}
}