add location_allow/deny directives
This commit is contained in:
parent
35a71ad2d3
commit
874ddcac2a
1 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,10 @@
|
|||
location <%= @location %> {
|
||||
<% if @location_allow -%><% @location_allow.each do |allow_rule| -%>
|
||||
allow <%= allow_rule %>;
|
||||
<% end -%><% end -%>
|
||||
<% if @location_deny -%><% @location_deny.each do |deny_rule| -%>
|
||||
deny <%= deny_rule %>;
|
||||
<% end -%><% end -%>
|
||||
<% if @location_custom_cfg_prepend -%><% @location_custom_cfg_prepend.each do |key,value| -%>
|
||||
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
|
||||
<% Array(subvalue).each do |asubvalue| -%>
|
||||
|
|
Loading…
Reference in a new issue