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
MaGe Linux Operations
How to Install and Configure GitLab CE 7.9 on Ubuntu 14.04

GitLab CE 7.9 Installation Guide and Issue Resolution

Thanks to Ruby experts and official documentation.

Problem Description

Daily scheduled 403 service for one hour

Solution

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.deb

Installation

Refer to official installation pages:
https://about.gitlab.com/downloads/#ubuntu1404
http://doc.gitlab.com/ce/install/installation.html

Configuration

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 reconfigure

Login Credentials

Username: root
Password: 5iveL!fe

Rack Attack Whitelist

https://gitlab.com/gitlab-org/omnibus-gitlab/issues/480

How to Set Whitelist

Reference
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
Whitelist 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/CHANGELOG

Postscript

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.

Sign in to view source
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 contactadmin@besthub.devand we will review it promptly.

OperationsGitLabWhitelistrack_attack
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.