cherry_be/gunicorn.conf.py
2020-04-04 08:46:45 +08:00

16 lines
444 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.

# 并行工作线程数
workers = 4
# 监听内网端口5000【按需要更改】
# coc
bind = '0.0.0.0:80'
# beta
# bind = '127.0.0.1:5005'
# 设置守护进程【关闭连接时,程序仍在运行】
daemon = True
# 设置超时时间120s默认为30s。按自己的需求进行设置
timeout = 120
# 设置访问日志和错误信息日志路径
accesslog = './logs/acess.log'
errorlog = './logs/error.log'
#自动重启
autostart = True