aboutsummaryrefslogtreecommitdiff
path: root/config.sample.js
diff options
context:
space:
mode:
Diffstat (limited to 'config.sample.js')
-rw-r--r--config.sample.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/config.sample.js b/config.sample.js
new file mode 100644
index 0000000..ce9cb70
--- /dev/null
+++ b/config.sample.js
@@ -0,0 +1,43 @@
+module.exports = {
+
+ // 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',
+ '127.0.0.1'
+ ]
+ },
+
+ // Uploads config
+ uploads: {
+
+ // Folder where images should be stored
+ folder: 'uploads',
+
+ // Max file size allowed
+ maxsize: '512MB'
+ },
+
+ // Folder where to store logs
+ logsFolder: 'logs',
+
+ // The length of the random generated name for the uploaded files
+ fileLength: 4,
+
+ // The following values shouldn't be touched
+ database: {
+ client: 'sqlite3',
+ connection: {
+ filename: './db'
+ },
+ useNullAsDefault: true
+ }
+} \ No newline at end of file