summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 311a34610..b5ba7845f 100644
--- a/model/config.go
+++ b/model/config.go
@@ -238,6 +238,7 @@ type FileSettings struct {
AmazonS3Region string
AmazonS3Endpoint string
AmazonS3SSL *bool
+ AmazonS3SignV2 *bool
}
type EmailSettings struct {
@@ -502,6 +503,11 @@ func (o *Config) SetDefaults() {
*o.FileSettings.AmazonS3SSL = true // Secure by default.
}
+ if o.FileSettings.AmazonS3SignV2 == nil {
+ o.FileSettings.AmazonS3SignV2 = new(bool)
+ // Signature v2 is not enabled by default.
+ }
+
if o.FileSettings.EnableFileAttachments == nil {
o.FileSettings.EnableFileAttachments = new(bool)
*o.FileSettings.EnableFileAttachments = true