Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Created February 21, 2020 04:44
Show Gist options
  • Save v-thomp4/9d67275c102e3fe44453a8ac0e39b2d4 to your computer and use it in GitHub Desktop.
Save v-thomp4/9d67275c102e3fe44453a8ac0e39b2d4 to your computer and use it in GitHub Desktop.
config http_proxy gitlab-ce
gitlab_rails['env'] = {
"http_proxy" => "http://proxy.example.com:9090",
"https_proxy" => "http://proxy.example.com:9090"
# "no_proxy" => ".yourdomain.com" # Wildcard syntax if you need your internal domain to bypass proxy
}
# Needed for proxying Git clones
gitaly['env'] = {
"http_proxy" => "http://proxy.example.com:9090",
"https_proxy" => "http://proxy.example.com:9090",
"no_proxy" => "unix" # Workaround for https://gitlab.com/gitlab-org/gitaly/issues/1447
}
gitlab_workhorse['env'] = {
"http_proxy" => "http://proxy.example.com:9090",
"https_proxy" => "http://proxy.example.com:9090"
}
# If you use the docker registry
registry['env'] = {
"http_proxy" => "http://proxy.example.com:9090",
"https_proxy" => "http://proxy.example.com:9090"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment