""" Gunicorn configuration for production deployment """ import multiprocessing # Server socket bind = "0.0.0.0:8000" backlog = 2048 # Worker processes workers = multiprocessing.cpu_count() * 2 + 1 worker_class = 'sync' worker_connections = 1000 timeout = 120 # Longer timeout for AI analysis keepalive = 2 # Logging accesslog = '-' # Log to stdout errorlog = '-' # Log to stderr loglevel = 'info' access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"' # Process naming proc_name = 'participatory_planner' # Server mechanics daemon = False pidfile = None umask = 0 user = None group = None tmp_upload_dir = None # SSL (uncomment and configure for HTTPS) # keyfile = '/path/to/keyfile' # certfile = '/path/to/certfile'