-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
54 lines (52 loc) · 1.18 KB
/
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
50
51
52
53
54
'use strict';
const path = require('path');
const fse = require('fs-extra');
module.exports = [
{
type: 'list',
name: 'backend',
message: 'backend for the storage',
choices: fse
.readdirSync(path.join(__dirname, 'lib/backend'))
.filter((file) => file.endsWith('.js'))
.map((file) => path.basename(file, '.js')),
default: 'fs',
},
{
type: 'input',
name: 'fs.location',
message: 'location to store the files',
default: null,
},
{
type: 'input',
name: 'fs.maxSize',
message:
'max size for the storage (no limit if 0, otherwise size in bytes)',
default: 0,
},
{
type: 'input',
name: 'fs.cipher',
message: 'default cipher to use for encryption',
default: 'aes-256-cbc',
},
{
type: 'input',
name: 'fs.compress',
message: 'default compression to use for encryption',
default: 'gzip',
},
{
type: 'input',
name: 'chronomancer.missing.time',
message: 'CRON time for database check',
default: '0 */1 * * *',
},
{
type: 'input',
name: 'chronomancer.collect.time',
message: 'CRON time for trashed backend files to collect',
default: '42 3 * * *',
},
];