diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-14 21:19:04 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-14 21:19:04 -0700 |
| commit | edf74f09611647166a782fad1ad8965e3a75957e (patch) | |
| tree | 8193718d18415902562bceb1a7bf0f18cdb11cc6 | |
| parent | 32a5500a2618e97bae18143d93b19c9773af5d7f (diff) | |
add rack ssl enforcer.
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | Gemfile.lock | 2 | ||||
| -rw-r--r-- | config/environments/production.rb | 1 |
3 files changed, 4 insertions, 0 deletions
@@ -38,6 +38,7 @@ gem 'ember-rails', github: 'emberjs/ember-rails' gem 'ember-source' gem 'dotenv' gem 'i18n-tasks' +gem 'rack-ssl-enforcer' # Use unicorn as the app server # gem 'unicorn' diff --git a/Gemfile.lock b/Gemfile.lock index 9191998..b500549 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -124,6 +124,7 @@ GEM puma (2.9.2) rack (>= 1.1, < 2.0) rack (1.5.2) + rack-ssl-enforcer (0.2.8) rack-test (0.6.2) rack (>= 1.0) rails (4.1.7) @@ -218,6 +219,7 @@ DEPENDENCIES pg pry puma + rack-ssl-enforcer rails rspec-rails sass-rails diff --git a/config/environments/production.rb b/config/environments/production.rb index eb29860..4c7b965 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -89,4 +89,5 @@ Urkel::Application.configure do # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new config.ember.variant = :production + config.middleware.use(Rack::SslEnforcer) end |
