Make nofiles limit configurable, change default

This commit is contained in:
Râu Cao 2024-06-08 16:26:48 +02:00
parent b4e89583fb
commit 33012f64c7
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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] %>"