favicon-api-v3/gunicorn.conf.py

32 lines
654 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# -*- coding: utf-8 -*-
# 绑定地址和端口
bind = "0.0.0.0:8000"
# Worker 进程数(推荐 CPU 核心数 * 2 + 1
workers = 4
# 工作模式sync、gevent、uvicorn.workers.UvicornWorker
worker_class = "uvicorn.workers.UvicornWorker"
# 日志级别debug、info、warning、error、critical
loglevel = "info"
# 访问日志文件("-" 表示输出到 stdout
accesslog = "-"
# 错误日志文件
errorlog = "-"
# 可选:超时时间(秒)
timeout = 120
# Keep - Alive超时
keepalive = 5
# 进程名ps aux 中显示)
# proc_name = "gunicorn"
# 守护进程运行(后台运行,默认 False
# daemon = True