问题描述
我已经设置好了,我们正在运行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?
显然,我们的URL很长,我们提出了一个新的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网站,创建存储库等.我可以进行分叉并提交就可以了.
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
推荐答案
您正确完成了所有操作!
You did everything correctly!
您还可以更改电子邮件配置,具体取决于电子邮件服务器是否也是同一服务器.电子邮件配置位于 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!