<NME> config.ru
<BEF> # This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST']
run Clahub::Application
end

run Clahub::Application

<MSG> Enforce SSL in production by default

<DFF> @@ -2,4 +2,5 @@
 
 require ::File.expand_path('../config/environment',  __FILE__)
 use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST']
+use Rack::SslEnforcer, :only_environments => ['production'] unless ENV['DISABLE_SSL_ENFORCEMENT']
 run Clahub::Application

Enforce SSL in production by default