加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uwsgi_for_docker.ini 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
[uwsgi]
# 连接方式
# socket = /srv/Flask_BestPractices/Flask_BestPractices.sock
# http = :5000
http-socket = :5000
# 基本配置
# home = /root/.local/share/virtualenvs/Flask_BestPractices-fJX6_D3O
chdir = /srv/Flask_BestPractices
module = run
callable = app
processes = 4
threads = 8
# 使用APSchedule:preload=True, lazy-apps=true, enable-threads=true
preload = true
lazy-apps = true
master = true
buffer-size = 65536
wsgi-file = /srv/Flask_BestPractices/run.py
chmod-socket = 660
# plugins = python3
enable-threads = true
vacuum = true
# 处理(超时/请求/进程结束/虚拟内存)
reload-mercy = 8
harakiri = 60
limit-as = 1024
max-requests = 20000
listen = 4096
# 日志(docker部署禁用,否则守护进程冲突)
# daemonize = /srv/logs/project_uwsgi.log
# disable-logging = true
# log-maxsize = 50000000
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化