mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 23:21:32 +00:00
Add env config prefix
This commit is contained in:
parent
975b1f248f
commit
46a4fe10ab
1 changed files with 5 additions and 5 deletions
|
@ -57,15 +57,15 @@ var heartbeattimeout = config.heartbeattimeout || 10000;
|
|||
var documentmaxlength = config.documentmaxlength || 100000;
|
||||
|
||||
// image upload setting, available options are imgur/s3/filesystem
|
||||
var imageUploadType = config.imageUploadType || 'imgur';
|
||||
var imageUploadType = process.env.HMD_IMAGE_UPLOAD_TYPE || config.imageUploadType || 'imgur';
|
||||
|
||||
config.s3 = config.s3 || {};
|
||||
var s3 = {
|
||||
accessKeyId: process.env.S3_ACCESS_KEY_ID || config.s3.accessKeyId,
|
||||
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY || config.s3.secretAccessKey,
|
||||
region: process.env.S3_REGION || config.s3.region
|
||||
accessKeyId: process.env.HMD_S3_ACCESS_KEY_ID || config.s3.accessKeyId,
|
||||
secretAccessKey: process.env.HMD_S3_SECRET_ACCESS_KEY || config.s3.secretAccessKey,
|
||||
region: process.env.HMD_S3_REGION || config.s3.region
|
||||
}
|
||||
var s3bucket = process.env.S3_BUCKET || config.s3.bucket;
|
||||
var s3bucket = process.env.HMD_S3_BUCKET || config.s3.bucket;
|
||||
|
||||
// auth
|
||||
var facebook = (process.env.HMD_FACEBOOK_CLIENTID && process.env.HMD_FACEBOOK_CLIENTSECRET) ? {
|
||||
|
|
Loading…
Reference in a new issue