Commit c9e6818ab64d7ec9219887174b613fe69791bb92
1 parent
3d57755b
Exists in
master
and in
4 other branches
Store repo satellites outside of tmp directory
Showing
4 changed files
with
10 additions
and
1 deletions
Show diff stats
config/gitlab.yml.example
... | ... | @@ -84,6 +84,10 @@ omniauth: |
84 | 84 | # 3. Advanced settings |
85 | 85 | # ========================== |
86 | 86 | |
87 | +# GitLab Satellites | |
88 | +satellites: | |
89 | + path: /home/gitlab/gitlab-satellites/ | |
90 | + | |
87 | 91 | ## Backup settings |
88 | 92 | backup: |
89 | 93 | path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/) | ... | ... |
config/initializers/1_settings.rb
... | ... | @@ -77,3 +77,5 @@ Settings['git'] ||= Settingslogic.new({}) |
77 | 77 | Settings.git['max_size'] ||= 5242880 # 5.megabytes |
78 | 78 | Settings.git['bin_path'] ||= '/usr/bin/git' |
79 | 79 | Settings.git['timeout'] ||= 10 |
80 | + | |
81 | +Settings.satellites['path'] ||= '/home/gitlab/gitlab/tmp/repo_satellites/' | ... | ... |
doc/install/installation.md
... | ... | @@ -223,6 +223,9 @@ do so with caution! |
223 | 223 | sudo chmod -R u+rwX log/ |
224 | 224 | sudo chmod -R u+rwX tmp/ |
225 | 225 | |
226 | + # Make directory for satellites | |
227 | + sudo -u gitlab -H mkdir /home/gitlab/gitlab-satellites | |
228 | + | |
226 | 229 | # Copy the example Unicorn config |
227 | 230 | sudo -u gitlab -H cp config/unicorn.rb.example config/unicorn.rb |
228 | 231 | ... | ... |
lib/gitlab/satellite/satellite.rb