kitsune/wsgi/config.py

12 строки
383 B
Python

# see http://docs.gunicorn.org/en/latest/configure.html#configuration-file
from os import getenv
bind = '0.0.0.0:{}'.format(getenv('PORT', 8000))
workers = int(getenv('WSGI_NUM_WORKERS', 2))
errorlog = '-'
loglevel = getenv('WSGI_LOG_LEVEL', 'info')
keepalive = int(getenv('WSGI_KEEP_ALIVE', 2))
worker_class = getenv('GUNICORN_WORKER_CLASS', 'meinheld.gmeinheld.MeinheldWorker')