Use the config object.

This commit is contained in:
Mathieu Lecarme 2019-11-08 17:58:33 +01:00
parent 2d22573588
commit 97deb78de6
2 changed files with 22 additions and 14 deletions

View file

@ -9,6 +9,16 @@ const conf = convict({
default: '',
env: 'S3_BUCKET'
},
s3_endpoint: {
format: String,
default: '',
env: 'S3_ENDPOINT'
},
s3_use_path_style_endpoint: {
format: Boolean,
default: false,
env: 'S3_USE_PATH_STYLE_ENDPOINT'
},
gcs_bucket: {
format: String,
default: '',