GitLab 修改主机名,更换 IP 配置,配置 SMTP
# find / -name gitlab.yml
/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
/var/opt/gitlab/gitlab-rails/etc/gitlab.yml
# find / -name gitlab.rb
/etc/gitlab/gitlab.rb
1.修改 gitlab.yml(/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml)文件中的host地址
2.修改 gitlab.rb(/etc/gitlab/gitlab.rb)文件中的external_url [将`external_url = 'http://git.example.com'`修改为自己的IP地址
]
3.客户端 git remote set-url origin <新的git地址>
REFER:http://blog.csdn.net/allenwdj/article/details/50432459
GitLab 汉化:https://larryli.cn/2015/07/644905
https://docs.gitlab.com/omnibus/settings/smtp.html