librelist archives

« back to archive

https with flask

https with flask

From:
Abdul Bijur Vallarkodath
Date:
2011-05-30 @ 15:51
Hello all,

I was trying to switch from http to https, but couldnt seem to find any 
documentation on how to.

Does anyone know how this could be done?

Thanks,
Abdul

Re: [flask] https with flask

From:
Ron DuPlain
Date:
2011-05-30 @ 15:56
On Mon, May 30, 2011 at 11:51 AM, Abdul Bijur Vallarkodath
<bijur@grep-i.com> wrote:
> I was trying to switch from http to https, but couldnt seem to find any
> documentation on how to.

For any production code, you'll want to deploy with a full httpd server:
http://flask.pocoo.org/docs/deploying/

Configure your httpd for https.  For example:
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
http://wiki.nginx.org/HttpSslModule

This entirely depends on your setup.  You don't need to do anything
with Flask itself for https.

-Ron

Re: [flask] https with flask

From:
Jesaja Everling
Date:
2011-05-30 @ 16:00
Hi Abdul,

as Ron said, Flask doesn't really care if you run http or https.
If you want to test https with the development-server, this should
work for Flask as well:

http://www.ianlewis.org/en/testing-https-djangos-development-server

Best Regards,

Jesaja Everling


On Mon, May 30, 2011 at 5:56 PM, Ron DuPlain <ron.duplain@gmail.com> wrote:
> On Mon, May 30, 2011 at 11:51 AM, Abdul Bijur Vallarkodath
> <bijur@grep-i.com> wrote:
>> I was trying to switch from http to https, but couldnt seem to find any
>> documentation on how to.
>
> For any production code, you'll want to deploy with a full httpd server:
> http://flask.pocoo.org/docs/deploying/
>
> Configure your httpd for https.  For example:
> http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
> http://wiki.nginx.org/HttpSslModule
>
> This entirely depends on your setup.  You don't need to do anything
> with Flask itself for https.
>
> -Ron
>

Re: [flask] https with flask

From:
Abdul Bijur Vallarkodath
Date:
2011-05-30 @ 16:36
Thank you Ron and Jesaja :)

Appreciate the help.

Abdul

On 30/05/11 18:00, Jesaja Everling wrote:
> Hi Abdul,
>
> as Ron said, Flask doesn't really care if you run http or https.
> If you want to test https with the development-server, this should
> work for Flask as well:
>
> http://www.ianlewis.org/en/testing-https-djangos-development-server
>
> Best Regards,
>
> Jesaja Everling
>
>
> On Mon, May 30, 2011 at 5:56 PM, Ron DuPlain<ron.duplain@gmail.com>  wrote:
>> On Mon, May 30, 2011 at 11:51 AM, Abdul Bijur Vallarkodath
>> <bijur@grep-i.com>  wrote:
>>> I was trying to switch from http to https, but couldnt seem to find any
>>> documentation on how to.
>> For any production code, you'll want to deploy with a full httpd server:
>> http://flask.pocoo.org/docs/deploying/
>>
>> Configure your httpd for https.  For example:
>> http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
>> http://wiki.nginx.org/HttpSslModule
>>
>> This entirely depends on your setup.  You don't need to do anything
>> with Flask itself for https.
>>
>> -Ron
>>