From cf6f154e6e5c59355c7764fd286799457266af38 Mon Sep 17 00:00:00 2001 From: NebulaBC Date: Fri, 17 Jun 2022 22:05:20 -0400 Subject: [PATCH] fix: add env vars for s3 endpoint (#153) --- src/lib/readConfig.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/readConfig.ts b/src/lib/readConfig.ts index 20c9f2f..2f30aee 100644 --- a/src/lib/readConfig.ts +++ b/src/lib/readConfig.ts @@ -19,6 +19,7 @@ const envValues = [ e('DATASOURCE_LOCAL_DIRECTORY', 'string', (c, v) => c.datasource.local.directory = v), e('DATASOURCE_S3_ACCESS_KEY_ID', 'string', (c, v) => c.datasource.s3.access_key_id = v ), e('DATASOURCE_S3_SECRET_ACCESS_KEY', 'string', (c, v) => c.datasource.s3.secret_access_key = v), + e('DATASOURCE_S3_ENDPOINT', 'string', (c, v) => c.datasource.s3.endpoint = v), e('DATASOURCE_S3_BUCKET', 'string', (c, v) => c.datasource.s3.bucket = v), e('UPLOADER_ROUTE', 'string', (c, v) => c.uploader.route = v), @@ -121,4 +122,4 @@ function parseToBoolean(value) { function parseToArray(value) { return value.split(','); -} \ No newline at end of file +}