FAQ in rainbows-0.96.0 vs FAQ in rainbows-0.97.0

- old
+ new

@@ -1,10 +1,10 @@ = Frequently Asked Questions about \Rainbows! === Why is \Rainbows! a separate project from Unicorn? -\Rainbows is for the odd, corner-case requests that Unicorn is poorly +\Rainbows! is for the odd, corner-case requests that Unicorn is poorly suited for. More scalable concurrency models introduce additional complexity that Unicorn users and developers are uncomfortable with for the common cases. @@ -50,14 +50,19 @@ solution even if nginx will always outperform it in raw throughput. === How do I support SSL? -If you need a streaming "rack.input" to do upload processing within your -Rack application, then {stunnel}[http://stunnel.org/] is required. -Otherwise, nginx is a perfectly good reverse proxy. +If you need streaming "rack.input" to do on-the-fly upload processing +within your Rack application, then using an SSL proxy such as +{Pound}[http://www.apsis.ch/pound/] or {Stunnel}[http://stunnel.org/] is +required. Pound has built-in X-Forwarded-For support while Stunnel +requires a extra {patch}[http://haproxy.1wt.eu/download/patches/]. +If you don't need streaming "rack.input", then nginx is a great HTTPS +reverse proxy. + Refer to the {Unicorn FAQ}[http://unicorn.bogomips.org/FAQ.html] on how to ensure redirects go to "https://" URLs. === Is there a "rainbows_rails" command like there is "unicorn_rails"? @@ -75,18 +80,18 @@ to set RAILS_ENV. For Rails 2.3.x, the following config.ru will work for you: ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] - require "config/environment" + require "#{::File.expand_path('config/environment')}" use Rails::Rack::Static run ActionController::Dispatcher.new For older versions of Rails, the following config.ru will work: ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] - require 'config/boot' - require 'config/environment' + require "#{::File.expand_path('config/boot')}" + require "#{::File.expand_path('config/environment')}" require 'unicorn/app/old_rails' require 'unicorn/app/old_rails/static' # not needed with Unicorn 0.95+ use Unicorn::App::OldRails::Static run Unicorn::App::OldRails.new