|
@@ -2,31 +2,27 @@ module.exports = {
|
|
|
|
|
|
/*
|
|
/*
|
|
NOTES:
|
|
NOTES:
|
|
-
|
|
|
|
All folders specified on this file will be created automagically.
|
|
All folders specified on this file will be created automagically.
|
|
- Most options shouldn't be touched, and the service should run straight up.
|
|
|
|
-
|
|
|
|
|
|
+ Ideally the only options you should change are port and basedomain.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+ // Token to use on the api. Leave blank for public
|
|
|
|
+ TOKEN: 'YOURSUPERSECRETTOKEN',
|
|
|
|
+
|
|
// Port on which to run the server
|
|
// Port on which to run the server
|
|
port: 9999,
|
|
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',
|
|
|
|
- '127.0.0.1'
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
// Uploads config
|
|
// Uploads config
|
|
uploads: {
|
|
uploads: {
|
|
|
|
|
|
|
|
+ // Where to serve the uploaded files.
|
|
|
|
+ basedomain: 'https://i.kanacchi.moe/',
|
|
|
|
+
|
|
|
|
+ // 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: '',
|
|
|
|
+
|
|
// Folder where images should be stored
|
|
// Folder where images should be stored
|
|
folder: 'uploads',
|
|
folder: 'uploads',
|
|
|
|
|
|
@@ -35,10 +31,6 @@ module.exports = {
|
|
|
|
|
|
// The length of the random generated name for the uploaded files
|
|
// The length of the random generated name for the uploaded files
|
|
fileLength: 4,
|
|
fileLength: 4,
|
|
-
|
|
|
|
- // Prefix before linking an uploaded file. Ex: your-domain.com/prefix/k4n4.png
|
|
|
|
- // Leave blank for no prefix
|
|
|
|
- prefix: ''
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// Folder where to store logs
|
|
// Folder where to store logs
|