From 2509b51883228b57f9875bc271048e366880d6fc Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 5 Mar 2020 17:23:47 +0000 Subject: [PATCH] Add optional gcs config to override gcs settings (for fake gcs server) --- services/filestore/config/settings.defaults.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/filestore/config/settings.defaults.coffee b/services/filestore/config/settings.defaults.coffee index 6ffe5a8523..0fe98effb1 100644 --- a/services/filestore/config/settings.defaults.coffee +++ b/services/filestore/config/settings.defaults.coffee @@ -34,6 +34,12 @@ settings = # gcs - Google Cloud Storage backend: process.env['BACKEND'] + gcs: + if process.env['GCS_API_ENDPOINT'] + apiEndpoint: process.env['GCS_API_ENDPOINT'] + apiScheme: process.env['GCS_API_SCHEME'] + projectId: process.env['GCS_PROJECT_ID'] + s3: if process.env['AWS_ACCESS_KEY_ID']? or process.env['S3_BUCKET_CREDENTIALS']? key: process.env['AWS_ACCESS_KEY_ID'] @@ -71,7 +77,7 @@ settings = sentry: dsn: process.env.SENTRY_DSN - + # Filestore health check # ---------------------- # Project and file details to check in persistor when calling /health_check