23 lines
458 B
Python
23 lines
458 B
Python
import multiprocessing
|
|||
|
|
import os
|
||
|
|
|
||
|
|
name = "sakhteman"
|
||
|
|
|
||
|
|
accesslog = "/home/sakhteman/server_fast_api/gunicorn-access.log"
|
||
|
|
errorlog = "/home/sakhteman/server_fast_api/gunicorn-error.log"
|
||
|
|
|
||
|
|
|
||
|
|
bind = "0.0.0.0:8082"
|
||
|
|
|
||
|
|
worker_class = "uvicorn.workers.UvicornWorker"
|
||
|
|
workers = 5
|
||
|
|
worker_connections = 1024
|
||
|
|
backlog = 2048
|
||
|
|
max_requests = 5120
|
||
|
|
timeout = 120
|
||
|
|
keepalive = 2
|
||
|
|
|
||
|
|
debug = os.environ.get("debug", "false") == "true"
|
||
|
|
reload = debug
|
||
|
|
preload_app = False
|
||
|
|
daemon = False
|