# Gunicorn configuration file import os workers = int(os.getenv('GUNICORN_WORKERS', '2')) # work mode to gthread worker_class = 'gthread' threads = int(os.getenv('GUNICORN_THREADS', '50')) bind = '0.0.0.0:8080' loglevel = os.getenv('GUNICORN_LOG_LEVEL', 'info') accesslog = '-' errorlog = '-' disable_redirect_access_to_syslog = True proc_name = os.getenv('GUNICORN_PROC_NAME', 'gunicorn_process') timeout = int(os.getenv('GUNICORN_TIMEOUT', '120')) keepalive = int(os.getenv('GUNICORN_KEEPALIVE', '5')) max_requests = int(os.getenv('GUNICORN_MAX_REQUESTS', '500')) max_requests_jitter = int(os.getenv('GUNICORN_MAX_REQUESTS_JITTER', '50')) worker_connections = int(os.getenv('GUNICORN_WORKER_CONNECTIONS', '1000')) os.environ['PYTHONUNBUFFERED'] = '1'