Commit 428a011a66841a14aaabf4c79af87bbf3a4e210f
1 parent
19c55b10
Exists in
master
and in
1 other branch
Enable SSL appwide.
Showing
3 changed files
with
9 additions
and
0 deletions
Show diff stats
Gemfile
@@ -4,6 +4,9 @@ gem 'rails', '3.0.10' | @@ -4,6 +4,9 @@ gem 'rails', '3.0.10' | ||
4 | gem 'nokogiri' | 4 | gem 'nokogiri' |
5 | gem 'mongoid', '~> 2.2.2' | 5 | gem 'mongoid', '~> 2.2.2' |
6 | 6 | ||
7 | +# force SSL | ||
8 | +gem 'rack-ssl', :require => 'rack/ssl' | ||
9 | + | ||
7 | gem 'haml' | 10 | gem 'haml' |
8 | gem 'htmlentities', "~> 4.3.0" | 11 | gem 'htmlentities', "~> 4.3.0" |
9 | gem 'devise', '~> 1.4.0' | 12 | gem 'devise', '~> 1.4.0' |
Gemfile.lock
@@ -131,6 +131,8 @@ GEM | @@ -131,6 +131,8 @@ GEM | ||
131 | rack (1.2.4) | 131 | rack (1.2.4) |
132 | rack-mount (0.6.14) | 132 | rack-mount (0.6.14) |
133 | rack (>= 1.0.0) | 133 | rack (>= 1.0.0) |
134 | + rack-ssl (1.3.2) | ||
135 | + rack | ||
134 | rack-test (0.5.7) | 136 | rack-test (0.5.7) |
135 | rack (>= 1.0) | 137 | rack (>= 1.0) |
136 | rails (3.0.10) | 138 | rails (3.0.10) |
@@ -230,6 +232,7 @@ DEPENDENCIES | @@ -230,6 +232,7 @@ DEPENDENCIES | ||
230 | octokit | 232 | octokit |
231 | oruen_redmine_client | 233 | oruen_redmine_client |
232 | pivotal-tracker | 234 | pivotal-tracker |
235 | + rack-ssl | ||
233 | rails (= 3.0.10) | 236 | rails (= 3.0.10) |
234 | ri_cal | 237 | ri_cal |
235 | rspec (~> 2.6) | 238 | rspec (~> 2.6) |
config/environments/production.rb
@@ -49,5 +49,8 @@ Errbit::Application.configure do | @@ -49,5 +49,8 @@ Errbit::Application.configure do | ||
49 | 49 | ||
50 | # Send deprecation notices to registered listeners | 50 | # Send deprecation notices to registered listeners |
51 | config.active_support.deprecation = :notify | 51 | config.active_support.deprecation = :notify |
52 | + | ||
53 | + # enable HTTPS | ||
54 | + config.middleware.insert_before Rack::Lock, "Rack::SSL" | ||
52 | end | 55 | end |
53 | 56 |