Make Gitaly internal API calls go through Workhorse
This will not only help improve observability of API calls made by Gitaly, but it will also enable Gitaly to download LFS files via the API to support archive downloads (gitlab#15079 (closed)).
Closes #5666 (closed)
On a single-node Omnibus instance, this results in this change:
* template[Create Gitaly config.toml] action create
- update content in file /var/opt/gitlab/gitaly/config.toml from 9f6716 to d47295
--- /var/opt/gitlab/gitaly/config.toml 2020-09-24 03:56:33.415040226 +0000
+++ /var/opt/gitlab/gitaly/.chef-config20200924-15565-1x6fwe4.toml 2020-09-24 04:00:53.517609937 +0000
@@ -36,7 +36,9 @@
dir = "/opt/gitlab/embedded/service/gitlab-shell"
[gitlab]
-url = 'http://127.0.0.1:8080'
+url = 'http+unix://%2Fvar%2Fopt%2Fgitlab%2Fgitlab-workhorse%2Fsocket'
+relative_url_root = ''
+
Edited by Stan Hu