Make Gitaly internal API URL go through Workhorse
Currently it appears that the default Gitaly config.toml
makes an API call that talks directly to the Unicorn UNIX port:
[gitlab]
url = 'http://0.0.0.0:8080'
This is calculated in https://gitlab.com/gitlab-org/omnibus-gitlab/blob/84e963616b25abb26eb54c016edce8493684dbf8/files/gitlab-cookbooks/gitaly/recipes/enable.rb#L76-77.
We had a similar problem with gitlab-shell (#4583 (closed)), which was fixed by !4498 (diffs).
We need to move this to Workhorse to fix gitlab#15079 (closed). In gitlab!42161 (merged), we will be adding an API to download LFS files that requires Workhorse to send the LFS data.