Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Attempt to detect S3_REGION if left blank.
Alex Vandiver5bc4d39c2581
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.pyindex 04b65e9e80b..b3e798a38d0 100644--- a/zproject/computed_settings.py+++ b/zproject/computed_settings.py@@ -52,6 +52,7 @@ from .configured_settings import (REMOTE_POSTGRES_PORT,REMOTE_POSTGRES_SSLMODE,ROOT_SUBDOMAIN_ALIASES,+ S3_REGION,SENTRY_DSN,SOCIAL_AUTH_APPLE_APP_ID,SOCIAL_AUTH_APPLE_SERVICES_ID,@@ -511,6 +512,10 @@ ROOT_DOMAIN_URI = EXTERNAL_URI_SCHEME + EXTERNAL_HOSTS3_KEY = get_secret("s3_key")S3_SECRET_KEY = get_secret("s3_secret_key")+if S3_KEY is not None and S3_SECRET_KEY is not None and S3_REGION is None:+ import boto3++ S3_REGION = boto3.client("s3").meta.region_nameDROPBOX_APP_KEY = get_secret("dropbox_app_key")