根据是否docker安装,进入挂载目录或安装目录
修改此文件,我一般是在可视化窗口中修改,有时候也在命令行手敲
将下面的配置复制到该文件中
external_url 'http://192.168.100.50'
# nginx['listen_port'] = 8000 (docker安装的这一行不需要,因为端口映射导致此处修改会导致访问不了页面,不知道你是否能懂)
gitlab_rails['gitlab_ssh_host'] = '192.168.100.50'
gitlab_rails['gitlab_shell_ssh_port'] = 222
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.163.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "XXX@163.com"
gitlab_rails['smtp_password'] = "