mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
updates to config
This commit is contained in:
parent
5eb85e28f3
commit
d85482a6c4
2 changed files with 10 additions and 12 deletions
|
@ -5,11 +5,11 @@ GEM
|
|||
ago (0.1.5)
|
||||
hoe (>= 1.12.2)
|
||||
ansi (1.4.3)
|
||||
backburner (0.3.4)
|
||||
beaneater (~> 0.3.0)
|
||||
backburner (0.4.2)
|
||||
beaneater (~> 0.3.1)
|
||||
dante (~> 0.1.5)
|
||||
bcrypt-ruby (3.0.1)
|
||||
beaneater (0.3.0)
|
||||
beaneater (0.3.1)
|
||||
builder (3.2.0)
|
||||
childprocess (0.3.9)
|
||||
ffi (~> 1.0, >= 1.0.11)
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
Rainbows! do
|
||||
name = 'neocities'
|
||||
|
||||
use :ThreadPool
|
||||
|
||||
client_max_body_size 12*1024*1024 # 12 Megabytes
|
||||
client_max_body_size 100*1024*1024 # 100 Megabytes
|
||||
|
||||
worker_processes 6
|
||||
worker_processes 8
|
||||
worker_connections 32
|
||||
timeout 10
|
||||
|
||||
listen "unix:tmp/#{name}.sock", :backlog => 2048
|
||||
listen "unix:/var/run/neocities/neocities.sock", :backlog => 2048
|
||||
|
||||
pid "tmp/#{name}.pid"
|
||||
stderr_path "tmp/#{name}.log"
|
||||
stdout_path "tmp/#{name}.log"
|
||||
pid "/var/run/neocities/neocities.pid"
|
||||
stderr_path "/var/log/neocities/neocities.log"
|
||||
stdout_path "/var/log/neocities/neocities.log"
|
||||
|
||||
preload_app true
|
||||
|
||||
before_fork do |server, worker|
|
||||
old_pid = "tmp/#{name}.pid.oldbin"
|
||||
old_pid = "/var/run/neocities/neocities.pid.oldbin"
|
||||
if File.exists?(old_pid) && server.pid != old_pid
|
||||
begin
|
||||
Process.kill("QUIT", File.read(old_pid).to_i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue