📜  通过 https 在 gevent 上烧瓶 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.956000             🧑  作者: Mango

代码示例1
# 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()