From df97172331e89b6b383c2081d9883a121aea730d Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 20 Aug 2014 10:48:53 +0200 Subject: [PATCH] Also use new NGINX listen_addresses for redirect --- files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb b/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb index 6f623ff..2f79a50 100644 --- a/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb +++ b/files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb @@ -25,7 +25,9 @@ upstream gitlab { <% if @https && @redirect_http_to_https %> server { - listen <%= @listen_address %>:<%= @redirect_http_to_https_port %>; +<% @listen_addresses.each do |listen_address| %> + listen <%= listen_address %>:<%= @redirect_http_to_https_port %>; +<% end %> server_name <%= @fqdn %>; server_tokens off; return 301 https://<%= @fqdn %>:<%= @port %>$request_uri; -- libgit2 0.21.2