【问题标题】:How to update FQDN for gitlab after installation安装后如何为 gitlab 更新 FQDN
【发布时间】:2014-08-25 21:46:14
【问题描述】:

八个月前我已经安装了 gitlab,到目前为止一切正常。

最近我更改了我们代理网站的域名(从agent.com到newagancy.com),所以我也想更改gitlab域名。 (从 gi​​tlab.agency.com 到 gitlab.newagency.com)

我对两个配置文件做了一些改动:

  • /home/git/gitlab-shell/config.yml
  • /home/git/gitlab/config/gitlab.yml

但我仍然没有让我的 gitlab 在 ssh 和 http 克隆 url 中使用新域名,即使命令:

sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

显示这个:

GitLab information
Version:    6.7.2
Revision:   dbbf4ea
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.newagency.com
HTTP Clone URL: http://gitlab.newagency.com/some-project.git
SSH Clone URL:  git@gitlab.newagency.com:some-project.git
Using LDAP: no
Using Omniauth: no

当然我错过了一些东西,但我想不通,

你有什么想法吗?

谢谢

【问题讨论】:

  • 我认为您还必须更新 nginx 配置以反映更改。具体来说,server_name 指令,如果您使用的是 nginx。
  • 我只将 plesk width apache 和 nginx 用于服务器代理,所以我不能做这个提示。顺便说一句,为了将用户请求重定向到 gitlab 公共目录,我使用了乘客模块来执行此操作。
  • 我想说:反向代理,不是服务器代理对不起!

标签: git ssh gitlab git-clone


【解决方案1】:

检查您是否按照https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#6-nginx 的所有步骤操作,您可能必须:

将 YOUR_SERVER_FQDN 更改为服务 GitLab 的主机的完全限定域名。

sudo vim /etc/nginx/sites-available/gitlab sudo service nginx restart

我在https://about.gitlab.com/getting-help/ 上搜索了许多问题的解决方案,以备将来使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-24
    • 2021-07-25
    • 1970-01-01
    • 2019-03-13
    • 1970-01-01
    相关资源
    最近更新 更多