Answers for "flask on gevent over https"

0

flask on gevent over https

# file: gevent_app_https.py
from flask_app import app
from gevent.pywsgi import WSGIServer

http_server = WSGIServer(('0.0.0.0', 443), app, keyfile='privkey.pem', certfile='cacert.pem')
http_server.serve_forever()
Posted by: Guest on November-27-2019

Python Answers by Framework

Browse Popular Code Answers by Language