forked from realdadfish/sparkleshare-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample-config.js
49 lines (39 loc) · 1.16 KB
/
example-config.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
exports.sessionSecret = 'JustSomeRandomString';
exports.folders = [
{ type: 'git', name: 'Public GIT folder', path: '/mnt/data/repos/repo1', pub: true },
{ type: 'git', name: 'Private GIT folder', path: '/mnt/data/repos/repo2', pub: false },
{ type: 'git', name: 'Windows GIT folder', path: 'D:\\data\\repo3\\.git', pub: false }
];
exports.listen = {
port: 3000,
host: null
};
exports.https = {
enabled: false,
key: '/path/to/private.key',
cert: '/path/to/cert.crt'
};
exports.basepath = '';
exports.externalUrl = null;
// time until link code is invalidated (in seconds)
exports.linkCodeValidFor = 300;
//time until session cookie is invalidated
exports.sessionValidFor = 3600000 * 24 //24 hours
// none | min | info | debug
exports.logging = 'none';
exports.fanout = {
enabled: false,
host: null,
port: 1986
};
exports.backend = {
'git': {
'bin': 'git', //the git executable
'temp': '/mnt/data/temp' //directory used for local checkouts (should exist)
}
};
exports.userProvider = {
name: 'local', // for now, only 'local' (using Redis) is available
usernameField: 'login',
passwordField: 'password'
}