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.
|
2017-01-14 21:13:58 +00:00
|
|
|
Ideally the only options you should change are port and basedomain.
|
2017-01-14 08:50:18 +00:00
|
|
|
*/
|
|
|
|
|
2017-01-14 23:47:50 +00:00
|
|
|
// Your base domain where the app is running.
|
|
|
|
basedomain: 'https://i.kanacchi.moe/',
|
|
|
|
|
2017-01-14 21:13:58 +00:00
|
|
|
// Token to use on the api. Leave blank for public
|
|
|
|
TOKEN: 'YOURSUPERSECRETTOKEN',
|
|
|
|
|
2017-01-13 07:48:18 +00:00
|
|
|
// Port on which to run the server
|
|
|
|
port: 9999,
|
|
|
|
|
|
|
|
// Uploads config
|
|
|
|
uploads: {
|
|
|
|
|
2017-01-14 21:13:58 +00:00
|
|
|
// If prefix is set, it will be appended at the end of basedomain.
|
|
|
|
// Ex: https://i.kanacchi.moe/prefix/k4n4.png
|
|
|
|
// Leave blank to use the basedomain
|
|
|
|
prefix: '',
|
|
|
|
|
2017-01-13 07:48:18 +00:00
|
|
|
// 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,
|
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
|
|
|
}
|