filesafe/config.sample.js

48 lines
1.1 KiB
JavaScript
Raw Normal View History

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.
Ideally the only options you should change are port and basedomain.
2017-01-14 08:50:18 +00:00
*/
2017-01-17 03:37:54 +00:00
// Should this instance of loli-safe be private? If so, a client token will be needed for uploads
private: true,
2017-01-15 06:15:08 +00:00
// Your base domain where the app is running. Remember to finish it with '/'
2017-01-14 23:47:50 +00:00
basedomain: 'https://i.kanacchi.moe/',
2017-01-13 07:48:18 +00:00
// Port on which to run the server
port: 9999,
// Uploads config
uploads: {
// If prefix is set, it will be appended at the end of basedomain. Remember to finish it with `/`
// 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: 32,
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
}