-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.js
48 lines (36 loc) · 1.21 KB
/
conf.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
const sendmailTransport = require('nodemailer-sendmail-transport');
const helpers = require('./api/helpers')
let conf = {
port: 6001,
our_vhost: 'filex-ng.univ.fr',
apache_shib_host: 'localhost',
user_default: {
quota: helpers.un_formatBytes('6G'),
max_daykeep: 45,
},
mongodb: {
url: "mongodb://localhost/filex-ng",
},
upload_dir: '/webhome/filex-ng/uploads',
wanted_mono_shib_attrs: [ "mail", "eppn" ],
session: {
'secret': 'XXXfilex-ngXXX',
},
session_store: {
retries: 0, // not needed on a local filesystem
path: '/tmp',
ttl: 10 /* minutes */ * 60, // inactivity time (uploading a file postpones expiration)
},
mail: {
from: 'Université Paris 1 (ne pas répondre) <[email protected]>',
intercept: '', //'[email protected]',
transport: sendmailTransport({ path: '/usr/sbin/sendmail' }), // give sendmail with full path (since PATH may not have /usr/sbin/)
},
request_to_ip: req => req.headers['x-forwarded-for'] || req.connection.remoteAddress,
trusted: {
bearer_tokens: [],
IPs: [],
},
//antivirus: 'clamdscan',
};
module.exports = conf;