FIX: Setting DISCOURSE_S3_REGION env variable had no effect

FIX: Setting DISCOURSE_S3_REGION env variable had no effect

From a3f8ef89a64753fa646ac3a6d46f82f36a327595 Mon Sep 17 00:00:00 2001
From: Gerhard Schlager <mail@gerhard-schlager.at>
Date: Wed, 21 Nov 2018 23:15:14 +0100
Subject: [PATCH] FIX: Setting DISCOURSE_S3_REGION env variable had no effect


diff --git a/config/site_settings.yml b/config/site_settings.yml
index e2ebf2a..d12ab1b 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -1019,6 +1019,7 @@ files:
   s3_region:
     default: 'us-east-1'
     enum: 'S3RegionSiteSetting'
+    shadowed_by_global: true
   s3_upload_bucket:
     default: ''
     regex: '^[a-z0-9\-\/]+$' # can't use '.' when using HTTPS

GitHub

1 Like