From 2105b10ccdff58a6d1986776c37fc179249f369f Mon Sep 17 00:00:00 2001 From: Tejay Cardon Date: Tue, 8 Aug 2017 08:15:20 -0600 Subject: FIXES PLT-6648 Add support for Server Side Encryption on S3 (#6467) Help from Jason Blais on wording Update storage_settings.jsx Update en.json --- model/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'model/config.go') diff --git a/model/config.go b/model/config.go index 55fe8490b..1717d61a0 100644 --- a/model/config.go +++ b/model/config.go @@ -262,6 +262,7 @@ type FileSettings struct { AmazonS3Endpoint string AmazonS3SSL *bool AmazonS3SignV2 *bool + AmazonS3SSE *bool } type EmailSettings struct { @@ -551,6 +552,11 @@ func (o *Config) SetDefaults() { // Signature v2 is not enabled by default. } + if o.FileSettings.AmazonS3SSE == nil { + o.FileSettings.AmazonS3SSE = new(bool) + *o.FileSettings.AmazonS3SSE = false // Not Encrypted by default. + } + if o.FileSettings.EnableFileAttachments == nil { o.FileSettings.EnableFileAttachments = new(bool) *o.FileSettings.EnableFileAttachments = true -- cgit v1.2.3-1-g7c22