Files
effekt-interface/gunicorn.conf.py
2026-04-15 11:19:55 +08:00

16 lines
553 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# encoding: UTF-8
from const import BE_URL
workers = 1 # 定义同时开启的处理请求的进程数量,根据网站流量适当调整
bind = BE_URL
threads = 2 # 多线程2个暂时就够用
debug = False
reload = False
loglevel = 'debug'
pidfile = "logs/gunicorn.pid"
accesslog = "-" # 输出到容器标准输出,便于 docker logs 查看
errorlog = "-" # 输出到容器标准错误,便于 docker logs 查看
timeout = 300 # 每个接口的超时时间
daemon = False # 容器内以前台方式运行,避免主进程退出