-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
48 lines (47 loc) · 1.08 KB
/
config.js
File metadata and controls
48 lines (47 loc) · 1.08 KB
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 locations = require('./locations')
const { version } = require('./package.json')
module.exports = function () {
return {
common: {
http: {
host: '127.0.0.1',
port: 17999,
url: 'http://127.0.0.1:17999',
maxage: 315360000,
pageNotFoundMaxage: 120
},
log: true,
quality: 85,
upload: {},
apiProcesses: 1,
backend: locations.backend,
endpoint: locations.endpoint,
accessKeyId: locations.accessKeyId,
secretAccessKey: locations.secretAccessKey,
region: locations.region,
bucket: locations.bucket,
databaseUri: locations.databaseUri,
databaseName: locations.databaseName,
paths: {
data: function () {
return locations.data
},
cache: function () {
return locations.cache
}
},
version: version,
salt: locations.salt,
key: locations.key,
allowedResponseFormats: [
'jpg',
'jpeg',
'png',
'gif',
'tiff',
'svg',
'webp'
]
}
}
}