6 Star 17 Fork 4

skytoup/AppServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.py 373 Bytes
一键复制 编辑 原始数据 按行查看 历史
skytoup 提交于 2017-04-07 14:25 +08:00 . 修改config; 添加workers配置
# -*- coding: utf-8 -*-
# Created by apple on 2017/1/30.
import ssl
from app import app
from app.config import Config
# https
context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain(certfile=Config.server_cer_file, keyfile=Config.server_key_file)
app.run(Config.bing, Config.port, Config.debug, ssl=context, workers=Config.workers)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/skytoup/AppServer.git
git@gitee.com:skytoup/AppServer.git
skytoup
AppServer
AppServer
master

搜索帮助