summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-20 09:10:27 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-20 09:10:27 +0000
commitb96fa3094affbe0787a7419341c9432fb2dd6266 (patch)
tree4283936bd814a5fc2f6b95a472be1debe5dada62 /config
parenta154c934eb4cfa8d3846520bce3eceab9b636b37 (diff)
parent2219743d5c6bffd80eaab55db76c0f7d19a8ae61 (diff)
downloadgitlab-ce-b96fa3094affbe0787a7419341c9432fb2dd6266.tar.gz
Merge branch 'lfs_default_and_backup' into 'master'
Lfs default and backup Part of gitlab-org/gitlab-ce#2955 See merge request !1823
Diffstat (limited to 'config')
-rw-r--r--config/gitlab.yml.example2
-rw-r--r--config/initializers/1_settings.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
index 8fdb2603ce8..1788d4c2c7c 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -126,7 +126,7 @@ production: &base
## Git LFS
lfs:
- enabled: false
+ enabled: true
# The location where LFS objects are stored (default: shared/lfs-objects).
# storage_path: shared/lfs-objects
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb
index 6b7990c0ab0..b498fb1e1da 100644
--- a/config/initializers/1_settings.rb
+++ b/config/initializers/1_settings.rb
@@ -203,7 +203,7 @@ Settings.incoming_email['mailbox'] = "inbox" if Settings.incoming_email['mail
# Git LFS
#
Settings['lfs'] ||= Settingslogic.new({})
-Settings.lfs['enabled'] = false if Settings.lfs['enabled'].nil?
+Settings.lfs['enabled'] = true if Settings.lfs['enabled'].nil?
Settings.lfs['storage_path'] = File.expand_path(Settings.lfs['storage_path'] || File.join(Settings.shared['path'], "lfs-objects"), Rails.root)
#