librelist archives

« back to archive

SSL HTTPS

SSL HTTPS

From:
Al Macmillan
Date:
2010-10-25 @ 18:05
Hi

I'm running my first Flask app on mod_wsgi. Wondering if anyone could 
point me to how to set up Https? Is it in the docs/is this a case for a 
werkzeug middleware?

Sorry my questions are so newb!

Al

Sent from my iPhone

Re: [flask] SSL HTTPS

From:
Thadeus Burgess
Date:
2010-10-25 @ 18:26
It should just be a configuration of your webserver. So in this case you set
apache up to serve a domain under SSL. It shouldn't require any
modifications to your Flask code. mod_wsgi would inject something like
[IS_SSL, HTTPS_ON, SECURE, etc...] into the WSGI environment depending on
the version of the webserver.

--
Thadeus




On Mon, Oct 25, 2010 at 1:05 PM, Al Macmillan <al@atomised.coop> wrote:

> Hi
>
> I'm running my first Flask app on mod_wsgi. Wondering if anyone could point
> me to how to set up Https? Is it in the docs/is this a case for a werkzeug
> middleware?
>
> Sorry my questions are so newb!
>
> Al
>
> Sent from my iPhone
>

Re: [flask] SSL HTTPS

From:
Echo
Date:
2010-10-25 @ 18:27
I think the idea thing to do would be to put your Flask app behind
apache, nginx or lighttpd and then have the server in front of it
handle the HTTPS stuff.

On Mon, Oct 25, 2010 at 2:05 PM, Al Macmillan <al@atomised.coop> wrote:
> Hi
>
> I'm running my first Flask app on mod_wsgi. Wondering if anyone could 
point me to how to set up Https? Is it in the docs/is this a case for a 
werkzeug middleware?
>
> Sorry my questions are so newb!
>
> Al
>
> Sent from my iPhone
>



-- 
-Brandon Singer