Rack middleware to force SSL
Ruby
Pull request Compare This branch is 1 commit ahead, 21 commits behind josh:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/rack
test
LICENSE
README.md
Rakefile
rack-ssl.gemspec

README.md

Rack::SSL

Force SSL/TLS in your app.

  1. Redirects all "http" on given port (option-key :port, default 80) requests to "https" with a given port (option-key :ssl_port, default 443)
  2. Set Strict-Transport-Security header
  3. Flag all cookies as "secure"

Usage

use Rack::SSL