13 lines
287 B
Python
13 lines
287 B
Python
"""Gunicorn config. Unix socket behind Nginx."""
|
|
import multiprocessing
|
|
|
|
bind = "unix:/run/classifieds/classifieds.sock"
|
|
workers = multiprocessing.cpu_count() * 2 + 1
|
|
worker_class = "sync"
|
|
timeout = 60
|
|
graceful_timeout = 30
|
|
keepalive = 5
|
|
accesslog = "-"
|
|
errorlog = "-"
|
|
loglevel = "info"
|