After the release of version 17.0, omnibus_config
was removed, so the proxy can no longer be configured there. It needs to be configured where necessary. In my instance, I had to specify http_proxy
in lowercase and HTTP_PROXY
in uppercase, as well as the other proxy directives. This way, the git mirror repositories also work 100%.
# Environment settings for Gitaly
gitaly['env'] = {
'http_proxy' => "http://proxyserver.example.com:8080",
'https_proxy' => "http://proxyserver.example.com:8080",
'no_proxy' => ".example.com, .example2.com, .example3.com, .example4.com",
'HTTP_PROXY' => "http://proxyserver.example.com:8080",
'HTTPS_PROXY' => "http://proxyserver.example.com:8080",
'NO_PROXY' => ".example.com, .example2.com, .example3.com, .example4.com"
}
# Environment settings for Rails
gitlab_rails['env'] = {
'http_proxy' => "http://proxyserver.example.com:8080",
'https_proxy' => "http://proxyserver.example.com:8080",
'no_proxy' => ".example.com, .example2.com, .example3.com, .example4.com",
'PLANTUML_ENCODING' => "deflate",
'HTTP_PROXY' => "http://proxyserver.example.com:8080",
'HTTPS_PROXY' => "http://proxyserver.example.com:8080",
'NO_PROXY' => ".example.com, .example2.com, .example3.com, .example4.com"
}
# Environment settings for Workhorse
gitlab_workhorse['env'] = {
'http_proxy' => "http://proxyserver.example.com:8080",
'https_proxy' => "http://proxyserver.example.com:8080",
'no_proxy' => ".example.com, .example2.com, .example3.com, .example4.com",
'HTTP_PROXY' => "http://proxyserver.example.com:8080",
'HTTPS_PROXY' => "http://proxyserver.example.com:8080",
'NO_PROXY' => ".example.com, .example2.com, .example3.com, .example4.com"
}
# Proxy settings for Rails
gitlab_rails['http_proxy'] = "http://proxyserver.example.com:8080"
gitlab_rails['https_proxy'] = "http://proxyserver.example.com:8080"
gitlab_rails['HTTP_PROXY'] = "http://proxyserver.example.com:8080"
gitlab_rails['HTTPS_PROXY'] = "http://proxyserver.example.com:8080"
# Proxy settings for Shell
gitlab_shell['http_proxy'] = "http://proxyserver.example.com:8080"
gitlab_shell['https_proxy'] = "http://proxyserver.example.com:8080"
gitlab_shell['HTTP_PROXY'] = "http://proxyserver.example.com:8080"
gitlab_shell['HTTPS_PROXY'] = "http://proxyserver.example.com:8080"