Compare commits

...

2 Commits

2 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ else
execute "compile" do
cwd "/usr/local/src/strfry"
command "make setup-golpe && make -j$(nproc)"
# action :nothing
action :nothing
notifies :create, "link[/usr/local/bin/strfry]", :immediately
notifies :restart, "service[strfry]", :delayed
end
@@ -75,6 +75,7 @@ template "/etc/strfry.conf" do
bind: node["strfry"]["bind_ip"],
real_ip_header: node["strfry"]["real_ip_header"],
port: node["strfry"]["port"],
nofiles: node["strfry"]["nofiles"],
info: node["strfry"]["info"]
}
notifies :restart, "service[strfry]", :delayed

View File

@@ -43,7 +43,7 @@ relay {
port = <%= @config[:port] || "7777" %>
# 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)
realIpHeader = "<%= @config[:real_ip_header] %>"