mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 08:23:00 +08:00
27 lines
649 B
Python
27 lines
649 B
Python
import multiprocessing
|
|
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
name = "gunicorn config for Felicity LiMS systemd daemon"
|
|
accesslog = "/home/aurthur/Development/Python/felicity/felicity_lims/backend/gunicorn-access.log"
|
|
errorlog = (
|
|
"/home/aurthur/Development/Python/felicity/felicity_lims/backend/gunicorn-error.log"
|
|
)
|
|
|
|
bind = "0.0.0.0:8000"
|
|
|
|
worker_class = "uvicorn.workers.UvicornWorker"
|
|
workers = multiprocessing.cpu_count() * 2 + 1
|
|
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
|