can you add HTTPS functionality to a python flask web server?

后端 未结 6 2146
半阙折子戏
半阙折子戏 2020-11-28 03:46

I am trying to build a web interface to Mock up a restful interface on networking device this networking device uses Digest Authentication and HTTPS. I figured out how to in

6条回答
  •  误落风尘
    2020-11-28 03:59

    Deploy Flask on a real web server, rather than with the built-in (development) server.

    See the Deployment Options chapter of the Flask documentation. Servers like Nginx and Apache both can handle setting up HTTPS servers rather than HTTP servers for your site.

    The standalone WSGI servers listed would typically be deployed behind Nginx and Apache in a proxy-forwarding configuration, where the front-end server handles the SSL encryption for you still.

提交回复
热议问题