-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js.sample
62 lines (62 loc) · 1.97 KB
/
config.js.sample
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
module.exports = {
session: {
name: 'rsyncCopyManager',
secret: 'soosecret',
lifeTime: 48 * 60 //48 hours
},
uid: 'exi', //optional
gid: 'exi', //optional
pubkeyfile: __dirname + '/keys/key.pub',
keyfile: __dirname + '/keys/key',
fs_check_interval: 60 * 24, //24 hours
download_retry_interval: 5, //5 minutes
downloadDir: __dirname + '/download/',
/*
* Uncomment http/https config as you like.
* For infos on how to generate ssl keys, check out:
* http://www.thegeekstuff.com/2009/07/linux-apache-mod-ssl-generate-key-csr-crt-file/
* If you don't strip the ssl passphrase from the keys, you will be queried at server
* startup.
*/
//http: {
// port: 3000,
// ip: '0.0.0.0'
//},
//https: {
// keyfile: __dirname + '/keys/rsync.local.key',
// crtfile: __dirname + '/keys/rsync.local.crt',
// /*
// * This line is only required if you can't strip the passphrase from the certificate,
// * and don't want to be asked to input the passphrase on startup.
// */
// passphrase: "my secret passphrase",
// /*
// * If this line is present, the server will redirect http calls to this url.
// * This will allow you to force users to use https.
// */
// httpRedirect: 'https://rsync.local:3001',
// port: 3001,
// ip: '0.0.0.0'
//},
defaultUser: {
name: 'admin',
password: 'admin'
},
defaultCategory: {
name: 'Default',
destination: __dirname + '/download'
},
pathmapperCacheSize: 10000,
rsync: {
maxDepth: 6,
cipher: false // This can be used to change the used ssh cipher
},
db: {
name: 'rsyncCopyManager',
user: 'root',
password: 'root',
host: 'localhost',
logging: false // Change the logging for SQL queries, change it to console.error to view the queries
},
logging: 'default'
};