From b4432bcb49d68665a753d07ea00712fa6c0eec8e Mon Sep 17 00:00:00 2001 From: Xi Lin Date: Thu, 9 Apr 2015 16:30:38 +0800 Subject: [PATCH 1/2] Fix GitLab Shell version See issue https://gitlab.com/gitlab-org/gitlab-ce/issues/700 --- install/centos/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/centos/README.md b/install/centos/README.md index 113cb8e..1b2b0e1 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -551,7 +551,7 @@ that were [fixed](https://github.com/bundler/bundler/pull/2817) in 1.5.2. GitLab Shell is an SSH access and repository management software developed specially for GitLab. # Run the installation task for gitlab-shell (replace `REDIS_URL` if needed): - sudo -u git -H bundle exec rake gitlab:shell:install[v2.1.0] REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production + sudo -u git -H bundle exec rake gitlab:shell:install[v2.0.1] REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production # By default, the gitlab-shell config is generated from your main GitLab config. # You can review (and modify) the gitlab-shell config as follows: From aa9998a4d5417f4856df473a5cd95aeb12f09838 Mon Sep 17 00:00:00 2001 From: Xi Lin Date: Sun, 19 Apr 2015 19:49:38 +0800 Subject: [PATCH 2/2] fix static file setting part for nginx --- install/centos/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/centos/README.md b/install/centos/README.md index 1b2b0e1..6fecce9 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -620,6 +620,8 @@ To do so, follow the instructions provided by the [nginx wiki][nginx-centos] and Edit `/etc/nginx/conf.d/gitlab.conf` and replace `git.example.com` with your FQDN. Make sure to read the comments in order to properly set up SSL. +Since the `location /uploads/` part of the gitlab.conf file proxy pass the static files to the gitlab server, you need to make sure that changing `gitlab/config/environments/production.rb` from `config.serve_static_assets = false` to `config.serve_static_assets = true` + Add `nginx` user to `git` group: usermod -a -G git nginx