2017-01-13 07:48:18 +00:00
|
|
|
module.exports = {
|
|
|
|
|
2017-01-14 08:50:18 +00:00
|
|
|
/*
|
|
|
|
NOTES:
|
|
|
|
|
|
|
|
All folders specified on this file will be created automagically.
|
|
|
|
Most options shouldn't be touched, and the service should run straight up.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2017-01-13 07:48:18 +00:00
|
|
|
// Port on which to run the server
|
|
|
|
port: 9999,
|
|
|
|
|
|
|
|
// Upload restrictions
|
|
|
|
privacy: {
|
|
|
|
|
|
|
|
// Is the service public? If so, anyone with the URL can upload files
|
|
|
|
public: false,
|
|
|
|
|
|
|
|
// If not, which IP's should be able to access?
|
|
|
|
IPs: [
|
|
|
|
'::1',
|
2017-01-14 19:23:54 +00:00
|
|
|
'127.0.0.1'
|
2017-01-13 07:48:18 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
// Uploads config
|
|
|
|
uploads: {
|
|
|
|
|
|
|
|
// Folder where images should be stored
|
|
|
|
folder: 'uploads',
|
|
|
|
|
|
|
|
// Max file size allowed
|
2017-01-14 08:50:18 +00:00
|
|
|
maxsize: '512MB',
|
|
|
|
|
|
|
|
// The length of the random generated name for the uploaded files
|
|
|
|
fileLength: 4,
|
|
|
|
|
|
|
|
// Prefix before linking an uploaded file. Ex: your-domain.com/prefix/k4n4.png
|
|
|
|
// Leave blank for no prefix
|
|
|
|
prefix: ''
|
2017-01-13 07:48:18 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Folder where to store logs
|
|
|
|
logsFolder: 'logs',
|
|
|
|
|
|
|
|
// The following values shouldn't be touched
|
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2017-01-14 08:50:18 +00:00
|
|
|
filename: './database/db'
|
2017-01-13 07:48:18 +00:00
|
|
|
},
|
|
|
|
useNullAsDefault: true
|
|
|
|
}
|
2017-01-14 19:23:54 +00:00
|
|
|
}
|