2017-01-13 07:48:18 +00:00
|
|
|
module.exports = {
|
|
|
|
|
2017-01-18 23:37:53 +00:00
|
|
|
/*
|
|
|
|
If set to true the user will need to specify the auto-generated token
|
|
|
|
on each API call, meaning random strangers wont be able to use the service
|
|
|
|
unless they have the token loli-safe provides you with.
|
2017-01-14 08:50:18 +00:00
|
|
|
|
2017-01-18 23:37:53 +00:00
|
|
|
If it's set to false, then upload will be public for anyone to use.
|
|
|
|
*/
|
2017-01-17 03:37:54 +00:00
|
|
|
private: true,
|
|
|
|
|
2017-01-30 08:10:13 +00:00
|
|
|
// If true, users will be able to create accounts and access their uploaded files
|
|
|
|
enableUserAccounts: true,
|
|
|
|
|
2017-01-18 23:37:53 +00:00
|
|
|
// The registered domain where you will be serving the app. Use IP if none.
|
|
|
|
domains: [
|
|
|
|
|
2017-01-21 20:21:29 +00:00
|
|
|
/*
|
|
|
|
You need to specify the base domain where loli-self is running
|
|
|
|
and how should it resolve the URL for uploaded files. For example:
|
|
|
|
*/
|
2017-01-18 23:37:53 +00:00
|
|
|
|
2017-01-21 20:21:29 +00:00
|
|
|
// Files will be served at http(s)://i.kanacchi.moe/Fxt0.png
|
|
|
|
{ host: 'kanacchi.moe', resolve: 'https://i.kanacchi.moe'},
|
2017-01-19 00:35:31 +00:00
|
|
|
|
2017-01-21 20:21:29 +00:00
|
|
|
// Files will be served at https://my.kanacchi.moe/loli-self/files/Fxt0.png
|
|
|
|
{ host: 'kanacchi.moe', resolve: 'https://my.kanacchi.moe/loli-self/files' }
|
2017-01-19 03:31:01 +00:00
|
|
|
|
2017-01-18 23:37:53 +00:00
|
|
|
],
|
2017-01-14 23:47:50 +00:00
|
|
|
|
2017-01-13 07:48:18 +00:00
|
|
|
// Port on which to run the server
|
|
|
|
port: 9999,
|
|
|
|
|
2017-02-06 03:06:33 +00:00
|
|
|
// Pages to process for the frontend
|
|
|
|
pages: ['home', 'auth', 'dashboard', 'faq'],
|
|
|
|
|
2017-01-13 07:48:18 +00:00
|
|
|
// Uploads config
|
|
|
|
uploads: {
|
|
|
|
|
|
|
|
// Folder where images should be stored
|
|
|
|
folder: 'uploads',
|
|
|
|
|
2017-01-19 03:31:01 +00:00
|
|
|
// Max file size allowed. Needs to be in MB
|
2017-01-18 23:37:53 +00:00
|
|
|
maxSize: '512MB',
|
2017-01-14 08:50:18 +00:00
|
|
|
|
|
|
|
// The length of the random generated name for the uploaded files
|
2017-01-16 08:22:19 +00:00
|
|
|
fileLength: 32,
|
2017-01-22 21:01:39 +00:00
|
|
|
|
|
|
|
// NOTE: Thumbnails are only for the admin panel and they require you
|
|
|
|
// to install a separate binary called graphicsmagick (http://www.graphicsmagick.org)
|
2017-02-06 23:53:22 +00:00
|
|
|
// for images and FFmpeg (https://ffmpeg.org/) for video files
|
2017-01-22 21:01:39 +00:00
|
|
|
generateThumbnails: false
|
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
|
|
|
}
|