Docker gitlab设置代理

本地docker搭建的gitlab在web页面导入github仓库有点慢,设置代理后快多了。

/etc/gitlab/gitlab.rb 写入自己的代理

gitlab_rails['env'] = {
    "http_proxy" => "http://<USERNAME>:<PASSWORD>@example.com:8080",
    "https_proxy" => "http://<USERNAME>:<PASSWORD>@example.com:8080"
#    "no_proxy" => ".yourdomain.com"  # Wildcard syntax if you need your internal domain to bypass proxy
}

配置生效

gitlab-ctl reconfigure

参考链接:

https://docs.gitlab.com/omnibus/settings/environment-variables.html

阅读剩余
THE END