Gitlab with non-standard SSH port (on VM with Iptable forwarding)

后端 未结 3 403
慢半拍i
慢半拍i 2020-12-23 14:12

My gitlab is on a virtual machine on a host server. I reach the VM with a non-standard SSH port (i.e. 766) which an iptable rule then forward from

3条回答
  •  青春惊慌失措
    2020-12-23 14:47

    In Omnibus-packaged versions you can modify that property in the /etc/gitlab/gitlab.rb file:

    gitlab_rails['gitlab_shell_ssh_port'] = 766
    

    Then, you'll need to reconfigure GitLab:

    # gitlab-ctl reconfigure
    

    Your URIs will then be correctly displayed as ssh://git@git.domain.com:766/group/project.git in the web interface.

提交回复
热议问题