Set up fail2ban for nginx, move IPFS gateway to proxy role
This commit is contained in:
23
cookbooks/fail2ban/templates/jail.erb
Normal file
23
cookbooks/fail2ban/templates/jail.erb
Normal file
@@ -0,0 +1,23 @@
|
||||
# DO NOT EDIT - This file is being maintained by Chef Infra
|
||||
|
||||
[<%= @name %>]
|
||||
enabled = true
|
||||
<% if @protocol -%>
|
||||
protocol = <%= @protocol %>
|
||||
<% end -%>
|
||||
<% unless @ports.empty? -%>
|
||||
port = <%= @ports.join(",") %>
|
||||
<% end -%>
|
||||
filter = <%= @filter %>
|
||||
<% if @logpath -%>
|
||||
logpath = <%= @logpath %>
|
||||
<% end -%>
|
||||
<% if @maxretry -%>
|
||||
maxretry = <%= @maxretry %>
|
||||
<% end -%>
|
||||
<% if @ignoreips -%>
|
||||
ignoreip = <%= @ignoreips.sort.join(" ") %>
|
||||
<% end -%>
|
||||
<% if @bantime -%>
|
||||
bantime = <%= @bantime %>
|
||||
<% end -%>
|
||||
Reference in New Issue
Block a user