summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYukai Huang2016-11-14 17:07:07 +0800
committerYukai Huang2016-11-14 17:07:07 +0800
commita5dad2930037b466542f1e77d3cbb0d0cbf184aa (patch)
tree9a987f37d91b11fc36898d9e6c75767bfd7255b9 /lib
parent81b368c11c81c7c759d4abcdff455121f2e87d9a (diff)
support filesystem image upload
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js
index 76b21f0d..001cc8fa 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -56,6 +56,9 @@ var heartbeattimeout = config.heartbeattimeout || 10000;
// document
var documentmaxlength = config.documentmaxlength || 100000;
+// image upload setting, available options are imgur/s3/filesystem
+var imageUploadType = config.imageUploadType || 'imgur';
+
// auth
var facebook = (process.env.HMD_FACEBOOK_CLIENTID && process.env.HMD_FACEBOOK_CLIENTSECRET) ? {
clientID: process.env.HMD_FACEBOOK_CLIENTID,
@@ -139,5 +142,6 @@ module.exports = {
gitlab: gitlab,
dropbox: dropbox,
google: google,
- imgur: imgur
+ imgur: imgur,
+ imageUploadType: imageUploadType
};