Commit 428a011a66841a14aaabf4c79af87bbf3a4e210f

Authored by Fletcher Nichol
1 parent 19c55b10
Exists in master and in 1 other branch production

Enable SSL appwide.

Gemfile
... ... @@ -4,6 +4,9 @@ gem 'rails', '3.0.10'
4 4 gem 'nokogiri'
5 5 gem 'mongoid', '~> 2.2.2'
6 6  
  7 +# force SSL
  8 +gem 'rack-ssl', :require => 'rack/ssl'
  9 +
7 10 gem 'haml'
8 11 gem 'htmlentities', "~> 4.3.0"
9 12 gem 'devise', '~> 1.4.0'
... ...
Gemfile.lock
... ... @@ -131,6 +131,8 @@ GEM
131 131 rack (1.2.4)
132 132 rack-mount (0.6.14)
133 133 rack (>= 1.0.0)
  134 + rack-ssl (1.3.2)
  135 + rack
134 136 rack-test (0.5.7)
135 137 rack (>= 1.0)
136 138 rails (3.0.10)
... ... @@ -230,6 +232,7 @@ DEPENDENCIES
230 232 octokit
231 233 oruen_redmine_client
232 234 pivotal-tracker
  235 + rack-ssl
233 236 rails (= 3.0.10)
234 237 ri_cal
235 238 rspec (~> 2.6)
... ...
config/environments/production.rb
... ... @@ -49,5 +49,8 @@ Errbit::Application.configure do
49 49  
50 50 # Send deprecation notices to registered listeners
51 51 config.active_support.deprecation = :notify
  52 +
  53 + # enable HTTPS
  54 + config.middleware.insert_before Rack::Lock, "Rack::SSL"
52 55 end
53 56  
... ...