-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.js
57 lines (51 loc) · 1.11 KB
/
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
'use strict';
module.exports = {
// Main options
url: 'http://127.0.0.1:5984',
logLevel: 'FATAL',
authRenewal: 570,
ldapGroupsRenewal: 300,
administrators: [],
superAdministrators: [],
// Server options
port: 3000,
fileDropPort: 3001,
auth: {
couchdb: {},
},
authServers: [],
proxy: true,
proxyPrefix: '',
publicAddress: 'http://127.0.0.1:3000',
keys: ['some secret'],
sessionKey: 'roc:sess',
sessionMaxAge: 24 * 60 * 60 * 1000, // One day
sessionPath: '/',
sessionSecure: false,
sessionSigned: true,
sessionSameSite: 'lax',
allowedOrigins: [],
debugrest: false,
rights: {},
getUserInfo(email) {
return { email };
},
ldapGetUserEmail(user) {
return user.mail;
},
getUserPublicInfo() {
return null;
},
entryUnicity: 'byOwner', // can be byOwner or global
// Options related to audit logs
auditActions: false,
auditActionsDb: 'roc-audit-actions',
// Options for Zenodo publication
zenodo: false,
zenodoSandbox: false,
zenodoToken: null,
zenodoName: null,
zenodoVisualizationUrl: null,
zenodoReadme: null,
zenodoAttachments: null,
};