Commit 9d90543a6bae6bdad70ffe7399e554ed00163f14
Exists in
master
and in
1 other branch
updated gemlock
Showing
3 changed files
with
7 additions
and
0 deletions
Show diff stats
Gemfile
@@ -5,6 +5,9 @@ gem 'rails', '3.2.6' | @@ -5,6 +5,9 @@ gem 'rails', '3.2.6' | ||
5 | gem 'nokogiri' | 5 | gem 'nokogiri' |
6 | gem 'mongoid', '~> 2.4.10' | 6 | gem 'mongoid', '~> 2.4.10' |
7 | 7 | ||
8 | +# force SSL | ||
9 | +gem 'rack-ssl', :require => 'rack/ssl' | ||
10 | + | ||
8 | gem 'haml' | 11 | gem 'haml' |
9 | gem 'htmlentities', "~> 4.3.0" | 12 | gem 'htmlentities', "~> 4.3.0" |
10 | 13 |
Gemfile.lock
@@ -297,6 +297,7 @@ DEPENDENCIES | @@ -297,6 +297,7 @@ DEPENDENCIES | ||
297 | omniauth-github | 297 | omniauth-github |
298 | oruen_redmine_client | 298 | oruen_redmine_client |
299 | pivotal-tracker | 299 | pivotal-tracker |
300 | + rack-ssl | ||
300 | rack-ssl-enforcer | 301 | rack-ssl-enforcer |
301 | rails (= 3.2.6) | 302 | rails (= 3.2.6) |
302 | rails_autolink (~> 1.0.9) | 303 | rails_autolink (~> 1.0.9) |
config/environments/production.rb
@@ -59,5 +59,8 @@ Errbit::Application.configure do | @@ -59,5 +59,8 @@ Errbit::Application.configure do | ||
59 | 59 | ||
60 | # Send deprecation notices to registered listeners | 60 | # Send deprecation notices to registered listeners |
61 | config.active_support.deprecation = :notify | 61 | config.active_support.deprecation = :notify |
62 | + | ||
63 | + # enable HTTPS | ||
64 | + config.middleware.insert_before Rack::Lock, "Rack::SSL" | ||
62 | end | 65 | end |
63 | 66 |