Commit df97172331e89b6b383c2081d9883a121aea730d
1 parent
d514e96f
Exists in
master
and in
2 other branches
Also use new NGINX listen_addresses for redirect
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
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; | ... | ... |