运行部署在AMI / AWS上的GitLab。目前我的域名直接登录。如何添加www.example.com是自定义页面的页面,然后 www.example.com/GitLab 是Gitlab的登录页面?
答案 0 :(得分:0)
如果您使用omnibus包部署了Gitlab,那么过程非常简单:
在/etc/gitlab/gitlab.rb中设置external_url:
external_url "https://example.com/gitlab"
重新配置GitLab以使更改生效:
sudo gitlab-ctl reconfigure
重新启动服务,以便Unicorn和Sidekiq接收更改
sudo gitlab-ctl restart
来自https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-a-relative-url-for-gitlab
但是,如果您从源部署,则此处描述了此过程https://docs.gitlab.com/ce/install/relative_url.html