This commit is contained in:
Michal Kváček
2025-09-18 22:02:25 +02:00
parent 71911c0905
commit d794208193
29 changed files with 668 additions and 523 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import os
# https://docs.gunicorn.org/en/stable/settings.html#settings
workers = os.cpu_count()
workers = 1 if os.environ.get("APP_ENV") == "development" else os.cpu_count()
bind = "0.0.0.0:8000"
worker_class = "uvicorn.workers.UvicornWorker"
worker_connections = 1000 # default