Files
memory-system/gunicorn.conf.py
T
zqf b1f93588f1 初始化:记忆系统源代码上传(已脱敏)
- 排除 .env / *.bak / 内部运维文档(README_INTERNAL.html)
- config.py 默认密码已替换为占位符 CHANGE_ME_*
- init_db.sql 移除生产数据库用户 GRANT 段
- README.html 数据库用户名已脱敏
- 保留:源码 + 公网 API 文档 + 建表 SQL(无授权语句)
2026-08-03 04:53:48 +08:00

16 lines
338 B
Python

"""Gunicorn configuration for Memory System"""
import multiprocessing
import os
bind = os.getenv("API_BIND", "127.0.0.1:8081")
workers = min(multiprocessing.cpu_count(), 4)
worker_class = "sync"
timeout = 120
keepalive = 5
max_requests = 2000
max_requests_jitter = 200
accesslog = "-"
errorlog = "-"
loglevel = "info"
preload_app = True