Force index_files to Array before iteration in templates
This commit is contained in:
parent
520eb23ffd
commit
f338f304c5
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ server {
|
|||
}
|
||||
<% end -%>
|
||||
<% if @index_files -%>
|
||||
index <% @index_files.each do |i| %> <%= i %><% end %>;
|
||||
index <% Array(index_files).each do |i| %> <%= i %><% end %>;
|
||||
<% end -%>
|
||||
|
||||
access_log <%= @access_log_real %>;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
autoindex on;
|
||||
<% end -%>
|
||||
<% if @index_files -%>
|
||||
index <% @index_files.each do |i| %> <%= i %><% end %>;
|
||||
index <% Array(index_files).each do |i| %> <%= i %><% end %>;
|
||||
<% end -%>
|
||||
<% if defined? @auth_basic -%>
|
||||
auth_basic "<%= @auth_basic %>";
|
||||
|
|
|
@ -21,7 +21,7 @@ server {
|
|||
auth_basic_user_file "<%= @auth_basic_user_file %>";
|
||||
<% end -%>
|
||||
<% if @index_files -%>
|
||||
index <% @index_files.each do |i| %> <%= i %><% end %>;
|
||||
index <% Array(index_files).each do |i| %> <%= i %><% end %>;
|
||||
<% end -%>
|
||||
|
||||
access_log <%= @ssl_access_log %>;
|
||||
|
|
Loading…
Reference in a new issue