Kenneth Reitz 1c31ef10db examples
2012-04-29 17:35:17 -04:00
2012-04-29 17:34:01 -04:00
2012-04-29 16:27:43 -04:00
2012-04-29 17:35:17 -04:00
2012-04-29 17:34:01 -04:00

Flask-SSLify
============

This is a simple Flask extension that configures your Flask application to redirect
all incoming requests to HTTPS.

Redirects only occur when ``app.debug`` is ``False``.

Usage
-----

Usage is pretty simple::

    from flask import Flask
    from flask_sslify import SSLify

    app = Flask(__name__)
    sslify = SSLify(app)


If you make an HTTP request, it will automatically redirect::

    $ curl -I http://secure-samurai.herokuapp.com/
    HTTP/1.1 302 FOUND
    Server: gunicorn/0.14.2
    Date: Sun, 29 Apr 2012 21:32:00 GMT
    Connection: keep-alive
    Content-Type: text/html; charset=utf-8
    Content-Length: 253
    Location: https://secure-samurai.herokuapp.com/
    Strict-Transport-Security: max-age=31536000


Install
-------

Installation is simple too::

    $ pip install Flask-SSLify
S
Description
No description provided
Readme BSD-2-Clause 82 KiB
Languages
Python 100%