Operations 5 min read
How to Install and Configure GitLab CE 7.9 on Ubuntu 14.04
This guide walks through downloading, installing, and configuring GitLab CE 7.9 on Ubuntu 14.04, covering nginx workarounds, whitelist setup for rack_attack, essential configuration changes, login credentials, and references to official documentation and update logs.
MaGe Linux Operations
MaGe Linux Operations
GitLab CE 7.9 Installation Guide and Issue Resolution
Thanks to Ruby experts and official documentation.
Problem Description
Daily scheduled 403 service for one hourSolution
1. Modify nginx config to bypass proxy_pass for front‑end IP (temporary fix)
2. Add whitelist in /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb (source modification)
3. Add whitelist in /etc/gitlab/gitlab.rb (used in this article)Download
Archive page
https://about.gitlab.com/downloads/archives/Download 7.9 version
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.9.0-omnibus.2-1_amd64.debInstallation
Refer to official installation pages:
https://about.gitlab.com/downloads/#ubuntu1404
http://doc.gitlab.com/ce/install/installation.htmlConfiguration
Modify configuration items
Open /etc/gitlab/gitlab.rb and change external_url = 'http://hostname' to your IP, e.g., http://xxx.xx.xxx.xx, then run:
sudo gitlab-ctl reconfigureLogin Credentials
Username: root
Password: 5iveL!feRack Attack Whitelist
https://gitlab.com/gitlab-org/omnibus-gitlab/issues/480How to Set Whitelist
Reference
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.templateWhitelist configuration snippet
"gitlab-rails": {
"rack_attack_git_basic_auth": {
"enabled": true,
"ip_whitelist": [
"127.0.0.1"
],
"maxretry": 300,
"findtime": 5,
"bantime": 60
}
}Detailed configuration process
root@zhuima:/tmp# grep -C 5 'ip_whitelist' /etc/gitlab/gitlab.rb
gitlab_rails['rack_attack_git_basic_auth'] = {
'enabled' => true,
'ip_whitelist' => ["127.0.0.1","192.168.101.219"],
'maxretry' => 300,
'findtime' => 5,
'bantime' => 60
}Personal Note
Often you must consult the official documentation; otherwise you may encounter issues. The configuration template in the official docs should be examined in detail.GitLab CE Update Information
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOGPostscript
Written on September 5, 2015 in Beijing.
Source: http://www.178linux.com/7988 (original article, please credit if reposted)
Original Source
Signed-in readers can open the original source through BestHub's protected redirect.
Republication Notice
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
