可在web界面配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

[root@xiaowangc ~]# vi /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
...
production: &base
#
# 1. GitLab app settings
# ==========================

## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: gitlab.local.com
port: 80
https: false

[root@xiaowangc ~]# vi /etc/gitlab/gitlab.rb
external_url 'http://gitlab.local.com'

[root@xiaowangc ~]# gitlab-cli restart
...