From 10a7c2664285aa2f6af37569b3dc89df5ebb8175 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 14 Oct 2020 17:44:36 +0200 Subject: [PATCH] Configurable region --- registry/src/config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry/src/config.ts b/registry/src/config.ts index 545fa3d..bbcfd6b 100644 --- a/registry/src/config.ts +++ b/registry/src/config.ts @@ -40,6 +40,9 @@ for (const key in env) { case "S3_SECRET": config.s3 = { ...(config.s3 || {}), secretKey: env[key] }; break; + case "S3_REGION": + config.s3 = { ...(config.s3 || {}), region: env[key] }; + break; } } }