Sha256: 5ebef752fab104aefd1e58231b507232bc65cd0fb135872d8e158d81bd3f5671

Contents?: true

Size: 795 Bytes

Versions: 11

Compression:

Stored size: 795 Bytes

Contents

# TODO - Dunno what a lot of this stuff is... Tune with benchmarks
# http://rainbows.rubyforge.org/Rainbows/Configurator.html

Rainbows! do
  use                       :EventMachine   # concurrency model
  worker_connections        400
  keepalive_timeout         0               # disables keepalives
  keepalive_requests        666             # default:100
  client_max_body_size      5 * 1024 * 1024 # 5 megabytes
  client_header_buffer_size 2 * 1024        # 2 kilobytes
end

# the rest of the Unicorn configuration...
worker_processes [ENV['WORKER_PROCESSES'].to_i, 1].max # Default to 1
working_directory ENV['WORKING_DIRECTORY'] if ENV['WORKING_DIRECTORY']
logger Firehose.logger

after_fork do |server, worker|
  require 'rainbows_em_swf_policy'
end if ENV['RACK_ENV'] == 'development'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
firehose-1.1.1 config/rainbows.rb
firehose-1.1.0 config/rainbows.rb
firehose-1.0.0 config/rainbows.rb
firehose-0.2.alpha.10 config/rainbows.rb
firehose-0.2.alpha.9 config/rainbows.rb
firehose-0.2.alpha.8 config/rainbows.rb
firehose-0.2.alpha.7 config/rainbows.rb
firehose-0.2.alpha.6 config/rainbows.rb
firehose-0.2.alpha.5 config/rainbows.rb
firehose-0.2.alpha.3 config/rainbows.rb
firehose-0.2.alpha.2 config/rainbows.rb