Mark van Renswoude
6f827382ff
Added deleting of uploads Adding a new code now goes into edit mode after applying, so you can copy the code directly
26 lines
616 B
JavaScript
26 lines
616 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
port: 3000,
|
|
|
|
nodeModulesPath: path.join(__dirname, 'node_modules'),
|
|
|
|
database: {
|
|
path: path.join(__dirname, 'data'),
|
|
autocompactionInterval: 60000
|
|
},
|
|
|
|
fileUpload: {
|
|
path: path.join(__dirname, 'data', 'files'),
|
|
url: '/files'
|
|
},
|
|
|
|
jwtSecret: 'change me to a random generated string',
|
|
|
|
code: {
|
|
// Use https://alex7kom.github.io/nano-nanoid-cc/ to check for the chance of collisions.
|
|
// If a collision occurs, a new code will be generated and tested again for up to 100 times.
|
|
alphabet: '1234567890abcdef',
|
|
length: 8
|
|
}
|
|
}; |