gitlab hostname 設置成IP 或域名

進入終端修改以下文件即可。

複製代碼

vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

複製代碼

## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: localhost         >> 這裏改爲主機的IP即可
    port: 80
    https: false

    # Uncommment this line below if your ssh host is different from HTTP/HTTPS one
    # (you'd obviously need to replace ssh.host_example.com with your own host).
    # Otherwise, ssh host will be set to the `host:` value above

複製代碼

 

複製代碼

重啓GitLab  

gitlab-ctl restart

OK!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章