add gunicorn
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user