From 6f326d56505f53106908b607d139729176fa2c93 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 9 Dec 2019 17:41:20 +0000 Subject: [PATCH] Use SSL setting based on url protocol --- services/filestore/app/coffee/S3PersistorManager.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/filestore/app/coffee/S3PersistorManager.coffee b/services/filestore/app/coffee/S3PersistorManager.coffee index b575001fb3..89522a4643 100644 --- a/services/filestore/app/coffee/S3PersistorManager.coffee +++ b/services/filestore/app/coffee/S3PersistorManager.coffee @@ -43,8 +43,9 @@ getS3Options = (credentials) -> secretAccessKey: credentials.auth_secret if settings.filestore.s3.endpoint + endpoint = URL.parse(settings.filestore.s3.endpoint) options.endpoint = settings.filestore.s3.endpoint - options.sslEnabled = false + options.sslEnabled = endpoint.protocol == 'https' return options