gitlab-shell配置文件的external_url与gitlab.rb

时间:2019-03-21 15:05:28

标签: gitlab gitlab-omnibus gitlab-ee

我正在使用GitLab的综合版本,并且已经成功使用了一周,但是由于进行了更新,每当我尝试远程访问git时,它都会返回错误GitLab: API is not accessible

我已将etc/gitlab/gitlab.rb文件中的外部URL设置为:

## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
external_url "http://<ip_address>:<port>}"

我在其中实际设置和的值。

运行sudo gitlab-ctl reconfigure时,我注意到文件external_url/opt/gitlab/embedded/service/gitlab-shell/config.yml 的值设置为:

# Url to gitlab instance. Used for api calls. Should end with a slash.
gitlab_url: "http://127.0.0.1:8080"

是否存在一些可能导致值无法正确映射的东西?

0 个答案:

没有答案