Make nofiles limit configurable, change default
This commit is contained in:
parent
b4e89583fb
commit
33012f64c7
@ -75,6 +75,7 @@ template "/etc/strfry.conf" do
|
|||||||
bind: node["strfry"]["bind_ip"],
|
bind: node["strfry"]["bind_ip"],
|
||||||
real_ip_header: node["strfry"]["real_ip_header"],
|
real_ip_header: node["strfry"]["real_ip_header"],
|
||||||
port: node["strfry"]["port"],
|
port: node["strfry"]["port"],
|
||||||
|
nofiles: node["strfry"]["nofiles"],
|
||||||
info: node["strfry"]["info"]
|
info: node["strfry"]["info"]
|
||||||
}
|
}
|
||||||
notifies :restart, "service[strfry]", :delayed
|
notifies :restart, "service[strfry]", :delayed
|
||||||
|
@ -43,7 +43,7 @@ relay {
|
|||||||
port = <%= @config[:port] || "7777" %>
|
port = <%= @config[:port] || "7777" %>
|
||||||
|
|
||||||
# Set OS-limit on maximum number of open files/sockets (if 0, don't attempt to set) (restart required)
|
# Set OS-limit on maximum number of open files/sockets (if 0, don't attempt to set) (restart required)
|
||||||
nofiles = 1000000
|
nofiles = <%= @config[:nofiles] || "524288" %>
|
||||||
|
|
||||||
# HTTP header that contains the client's real IP, before reverse proxying (ie x-real-ip) (MUST be all lower-case)
|
# HTTP header that contains the client's real IP, before reverse proxying (ie x-real-ip) (MUST be all lower-case)
|
||||||
realIpHeader = "<%= @config[:real_ip_header] %>"
|
realIpHeader = "<%= @config[:real_ip_header] %>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user