mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 10:37:11 +00:00
5f3f6b7c61
- Add a productionized setup for the Khoj server using `gunicorn` with multiple workers for handling requests - Add a new Dockerfile meant for production config at `ghcr.io/khoj-ai/khoj:prod`; the existing Docker config should remain the same
10 lines
203 B
Python
10 lines
203 B
Python
import multiprocessing
|
|
|
|
bind = "0.0.0.0:42110"
|
|
workers = 4
|
|
worker_class = "uvicorn.workers.UvicornWorker"
|
|
timeout = 120
|
|
keep_alive = 60
|
|
accesslog = "access.log"
|
|
errorlog = "error.log"
|
|
loglevel = "debug"
|