Gradually eliminated Gitosis, gitolite
At present more use Gitlab
Vi/etc/yum.repos.d/gitlab-ce.repo
[Gitlab-ce]
Name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
Gpgcheck=0
enabled=1
Gpgkey=https://packages.gitlab.com/gpg.key
sudo yum Makecache
sudo yum install gitlab-ce Modify Configuration
Vim/etc/gitlab/gitlab.rb
External_url= ' http://git.example.com ' //modify to your own IP address or your own domain name, and then compile, this will be done with chef,
about Mailbox
gitlab_rails[' smtp_enable ' = True
gitlab_rails[' smtp_address '] = "smtp.163.com"
gitlab_rails[' Smtp_port '] =
gitlab_rails[' smtp_user_name '] = "xxx@163.com"
gitlab_rails[' smtp_password '] = "xxx"
gitlab_rails[ ' Smtp_domain '] = "163.com"
gitlab_rails[' smtp_authentication ' =: Login
gitlab_rails[' Smtp_enable_starttls _auto '] = True
Modify the sender of the Gitlab configuration
gitlab_rails[' gitlab_email_from ' = "xxx@163.com"
user["git_user_email"] = "xxx@163.com"
sudo gitlab-ctl reconfigure add Ssh-key after startup