Fix health checks not working behind load balancers Closes #58573 See merge request gitlab-org/gitlab-ce!26055