summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-06 17:42:30 +0000
committerRémy Coutable <remy@rymai.me>2017-03-06 17:42:30 +0000
commit8526c9f3c4fc29f544593bcc361409eaf80caafe (patch)
tree68936213d8a8f4cb6af05348e9fb305757c2010c /config
parent1ad1cdba9693cbdbe96ea3d83789f06b9898c6d3 (diff)
parent7a7ec1ac0f742753d7acfacb7b7913ebbaf81558 (diff)
downloadgitlab-ce-8526c9f3c4fc29f544593bcc361409eaf80caafe.tar.gz
Merge branch 'backup_storage_class' into 'master'
Add storage class configuration option for Amazon S3 remote backups See merge request !9599
Diffstat (limited to 'config')
-rw-r--r--config/gitlab.yml.example2
-rw-r--r--config/initializers/1_settings.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
index 8f99a4d541f..c9bd6b930d6 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -483,6 +483,8 @@ production: &base
# multipart_chunk_size: 104857600
# # Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for backups, this is optional
# # encryption: 'AES256'
+ # # Specifies Amazon S3 storage class to use for backups, this is optional
+ # # storage_class: 'STANDARD'
## GitLab Shell settings
gitlab_shell:
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb
index 5aeaa7eab81..933844e4ea6 100644
--- a/config/initializers/1_settings.rb
+++ b/config/initializers/1_settings.rb
@@ -399,6 +399,7 @@ if Settings.backup['upload']['connection']
end
Settings.backup['upload']['multipart_chunk_size'] ||= 104857600
Settings.backup['upload']['encryption'] ||= nil
+Settings.backup['upload']['storage_class'] ||= nil
#
# Git