首页 文章

反向代理更改后,gitlab存储库URL不变

提问于
浏览
1

我使用nginx反向代理在端口80上提供gitlab web app . 即nginx反向代理将查询重定向到http://ip-address/gitlabhttp://ip-address:8000/gitlab . 我在'gitlab.rb'文件中更新了'external_url' . 一切正常(即我能够通过http://ip-address/gitlab访问gitlab web-intrface),但生成的git clone URL除外 . 当我创建新的git项目时,repo URL显示为http://ip-addeess:8000/gitlab/user/testproject.git . 即港口仍在那里 . 我该如何移除端口?

1 回答

  • 0

    显示的存储库URL是从 gitlab.rb 文件中的参数 external_url 生成的 .

    你应该这样设置:

    external_url 'http://ip-address/gitlab'
    

    然后运行 sudo gitlab-ctl reconfigure 以应用此更改 .

相关问题