I’m using an on-premises GitLab CE, and we’re planning to restrict outbound communication from the Git server through a proxy.
I set up the proxy settings in the /etc/environment file, which allowed me to download and upgrade GitLab packages through the proxy.
Additionally, to enable internet access for the GitLab application itself, I followed the proxy settings instructions from GitLab’s documentation:
gitlab_rails[‘env’] = {
“http_proxy” => “socks5://10.20.30.40:3128/”,
“https_proxy” => “socks5://10.20.30.40:3128/”,
“no_proxy” => “localhost,127.0.0.1”
}
I’ve successfully used this proxy to download GitLab packages and verified the connection by fetching headers.
However, after enabling reCAPTCHA v2 for our domain, the captcha works without the proxy but gives a 500 error after submission when using the proxy.
Does anyone know how to resolve this?
If i connect proxy and use recaptcha in gitlab, .after entering the capthca correctly , a green tick used to come (might the client level validation done at page) but after submit button ,it will show 500 error as shown below

