Commit df97172331e89b6b383c2081d9883a121aea730d

Authored by Jacob Vosmaer
1 parent d514e96f

Also use new NGINX listen_addresses for redirect

files/gitlab-cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb
... ... @@ -25,7 +25,9 @@ upstream gitlab {
25 25  
26 26 <% if @https && @redirect_http_to_https %>
27 27 server {
28   - listen <%= @listen_address %>:<%= @redirect_http_to_https_port %>;
  28 +<% @listen_addresses.each do |listen_address| %>
  29 + listen <%= listen_address %>:<%= @redirect_http_to_https_port %>;
  30 +<% end %>
29 31 server_name <%= @fqdn %>;
30 32 server_tokens off;
31 33 return 301 https://<%= @fqdn %>:<%= @port %>$request_uri;
... ...