Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Commit

Permalink
ssl enforcer experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
gojko committed Sep 6, 2014
1 parent 9dd2202 commit a81c424
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -5,6 +5,7 @@ gem 'sinatra', '1.3.2'
gem 'uuid'
gem 'aws-sdk'
gem 'thin'
gem 'rack-ssl-enforcer'

group :test do
gem 'rack-test'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -21,6 +21,7 @@ GEM
rack (1.4.2)
rack-protection (1.3.2)
rack
rack-ssl-enforcer (0.2.8)
rack-test (0.6.1)
rack (>= 1.0)
rspec (2.12.0)
Expand Down Expand Up @@ -51,6 +52,7 @@ PLATFORMS
DEPENDENCIES
aws-sdk
nokogiri
rack-ssl-enforcer
rack-test
rspec
sinatra (= 1.3.2)
Expand Down
3 changes: 3 additions & 0 deletions config.ru
@@ -1,3 +1,6 @@
if ENV["FORCE_SSL"] === "YES" then
use Rack::SslEnforcer
end
require File.dirname(__FILE__)+'/web.rb'
$stdout.sync = true
use Rack::Session::Cookie, :expire_after => 2678400, # In seconds
Expand Down

0 comments on commit a81c424

Please sign in to comment.