Sha256: 3581c5302a7f55234937818fdba64a7ebf397ec40c3d15d590860ede8f4f3d28

Contents?: true

Size: 909 Bytes

Versions: 9

Compression:

Stored size: 909 Bytes

Contents

# Configuration from http://rainbows.rubyforge.org/Rainbows/Configurator.html. Don't juse
# blindly copy and paste this configuration! Be sure you have read and understand the Rainbows
# configuration documentation for your environment.

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 'firehose/patches/rainbows'
end if ENV['RACK_ENV'] == 'development'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
firehose-1.2.8 config/rainbows.rb
firehose-1.2.7 config/rainbows.rb
firehose-1.2.6 config/rainbows.rb
firehose-1.2.5 config/rainbows.rb
firehose-1.2.4 config/rainbows.rb
firehose-1.2.3 config/rainbows.rb
firehose-1.2.2 config/rainbows.rb
firehose-1.2.1 config/rainbows.rb
firehose-1.2.0 config/rainbows.rb