added Amazon S3 config fields to setup

pull/18/head
tycrek 3 years ago
parent 539a9c3a23
commit 4e177929d5
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -11,6 +11,11 @@ var config = {
diskFilePath: "uploads/",
saveWithDate: false,
saveAsOriginal: true,
s3enabled: false,
s3endpoint: 'sfo3.digitaloceanspaces.com',
s3bucket: 'bucket-name',
s3accessKey: 'accessKey',
s3secretKey: 'secretKey',
};
// If directly called on the command line, run setup script
@ -101,6 +106,36 @@ if (require.main === module) {
default: config.saveAsOriginal,
required: false
},
s3enabled: {
description: 'Enable uploading to S3 storage endpoints',
type: 'boolean',
default: config.s3enabled,
required: false
},
s3endpoint: {
description: 'S3 Endpoint URL to upload objects to',
type: 'string',
default: config.s3endpoint,
required: false
},
s3bucket: {
description: 'S3 Bucket name to upload objects to',
type: 'string',
default: config.s3bucket,
required: false
},
s3accessKey: {
description: 'Access key for the specified S3 API',
type: 'string',
default: config.s3accessKey,
required: false
},
s3secretKey: {
description: 'Secret key for the specified S3 API',
type: 'string',
default: config.s3secretKey,
required: false
},
}
};

Loading…
Cancel
Save