Skip to content

Commit 05c7aaa

Browse files
committed
Adds Rack::SSL
1 parent d0e161b commit 05c7aaa

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ gem 'newrelic_rpm'
1515
# Fixes Rails architecture kludges
1616
gem 'rails_12factor', group: :production
1717

18+
# Forces SSL usage
19+
gem 'rack-ssl'
1820

1921
# Use Redis as backing store
2022
gem 'ohm'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ GEM
151151
pry-nav (0.2.4)
152152
pry (>= 0.9.10, < 0.11.0)
153153
rack (1.5.2)
154+
rack-ssl (1.4.1)
155+
rack
154156
rack-test (0.6.2)
155157
rack (>= 1.0)
156158
rails (4.1.6)
@@ -278,6 +280,7 @@ DEPENDENCIES
278280
pry
279281
pry-doc
280282
pry-nav
283+
rack-ssl
281284
rails (= 4.1.6)
282285
rails_12factor
283286
redis-rails

config/environment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
config.autoload_paths += %W(#{config.root}/app/services)
66

77
config.middleware.use ActionDispatch::Flash
8+
config.middleware.insert 0, Rack::SSL
89
end
910

1011
# Initialize the Rails application.

0 commit comments

Comments
 (0)