我们如何更改正在运行的 GitLab 安装的 URL? [英] How do we change the URL of a working GitLab install?

查看:8
本文介绍了我们如何更改正在运行的 GitLab 安装的 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置并且我们正在运行 GitLab v6.0.1 的默认安装(我们也即将升级).这是一个生产"设置,完全按照本指南进行操作:

I have set up and we are running a default install of GitLab v6.0.1 (we're about to upgrade as well). It was a "Production" setup, following this guide precisely to the letter:

https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md

现在,我们如何安全地更改有效安装的 URL?

显然我们的网址很长,我们想出了一个新网址.我编辑了许多配置文件,应用程序状态检查"报告一切正常.我已重新启动服务器以确保一切正常.

Apparently our URL is very long and we've come up with a new URL. I've edited a number of configuration files and the "Application Status Checks" report everything is OK. I've rebooted the server to ensure things are still working.

我可以通过我们原来的 SSL 很好地访问 Nginx.我可以浏览 GitLab 站点、创建存储库等.我可以 fork 和 commit 就好了.

I can access Nginx just fine, over our original SSL. I can browse the GitLab site, create a repository, etc. I can fork and commit just fine.

一切似乎都还好;但是,由于这对我来说不是本地环境,所以我想仔细检查一下我是否已经完成了重命名 GitLab 站点的所有操作.

It all seems to be OK; but, since this is not a native environment for me, I wanted to double check that I have done everything to rename a GitLab site.

我编辑的文件是:

/etc/hosts
  127.0.0.1  localhost
  10.0.0.10  wake.domain.com    wake
  10.0.0.10  git.domain.com     git

/home/git/gitlab/config/gitlab.yml
  production: &base
    gitlab:
      host: git.domain.com

/home/git/gitlab-shell/config.yml
  gitlab_url: "https://git.domain.com"
  ^- yes, we are on SSL and that is working, even on a new URL

/etc/nginx/sites-available/gitlab
  server {
    server_name git.domain.com

推荐答案

你做对了!

您还可以更改电子邮件配置,具体取决于电子邮件服务器是否也是同一台服务器.电子邮件配置在 gitlab.yml 中GitLab 发送的邮件以及管理员电子邮件.

You might also change the email configuration, depending on if the email server is also the same server. The email configuration is in gitlab.yml for the mails sent by GitLab and also the admin-email.

这篇关于我们如何更改正在运行的 GitLab 安装的 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆