0
當我創建一個GitLab庫,它顯示了不同的HTTP URL以及由於某種原因庫的SSH URL。
如)
HTTP: http://anotherexample.com/myrepo.git
SSH: [email protected]/myrepo.git
我gitlab網址是:HTTPS://gitlab.example.com,所以SSH是正確的,HTTP是錯誤的。
(anotherexample.com是我的服務器的URL之前,我設置DNS)。
我看着 /var/opt/gitlab/gitlab-rails/etc/gitlab.yml,然後發現:
# 1. GitLab app settings
# ==========================
host: anotherexample.com
port: 80
https: false
ssh_host: gitlab.example.com
然後我手動改變了這種主機和它的暫時解決。
但是,gitlab.yml會在我做的時候更新gitlab-ctl reconfigure。
問題:
我如何設置在HTTP該主機名/etc/gitlab/gitlab.rb
?
我已經有下面兩行:
external_url 'https://gitlab.example.com'
gitlab_rails['gitlab_ssh_host'] = 'gitlab.example.com'
但似乎不支持HTTP URL工作。
我GitLab版本:8.8.3
我的服務器:CentOS的6.8 + nginx的1.10.1
在此先感謝。
如何,這是一個編程問題行了?請[請參閱此頁面以查看適用於StackOverflow的主題!](http://stackoverflow.com/help/on-topic):) –