<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']
use Rack::SslEnforcer, :only_environments => ['production'] unless ENV['DISABLE_SSL_ENFORCEMENT']
run Clahub::Application

<MSG> Allow HTTP-only for ^/repo_hook to support already-registered GitHub repo hook URLs (issue #59)

<DFF> @@ -2,5 +2,8 @@
 
 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']
+unless ENV['DISABLE_SSL_ENFORCEMENT']
+  use Rack::SslEnforcer, :only_environments => ['production'], :except => %r{^/repo_hook}
+end
+
 run Clahub::Application

Allow HTTP-only for ^/repo_hook to support already-registered GitHub repo hook URLs (issue #59)