Pass listen_network of gitlab_workhorse to the nginx template.

This commit is contained in:
Marin Jankovski 2016-03-04 16:29:52 +01:00
parent 89b7b47d2b
commit 51b20e27ff
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
###################################
upstream gitlab-workhorse {
server unix:<%= node['gitlab']['gitlab-workhorse']['listen_addr'] %>;
server <%= "unix:" if node['gitlab']['gitlab-workhorse']['listen_network'] == "unix" %><%= node['gitlab']['gitlab-workhorse']['listen_addr'] %>;
}
<% if @https && @redirect_http_to_https %>