django-for-runners_ynh/conf/gunicorn.conf.py
Jens Diemer 179765f117 Apply manageprojects updates
https://github.com/jedie/cookiecutter_templates/#base-django-yunohost-app migrated from Poetry to
pip-tools and to manifest v2

Apply these changes here.
2023-11-09 20:46:24 +01:00

20 lines
531 B
Python

"""
Configuration for Gunicorn
"""
import multiprocessing
bind = '127.0.0.1:__PORT__'
# https://docs.gunicorn.org/en/latest/settings.html#workers
workers = multiprocessing.cpu_count() * 2 + 1
# https://docs.gunicorn.org/en/latest/settings.html#logging
loglevel = 'info'
# https://docs.gunicorn.org/en/latest/settings.html#logging
accesslog = '__LOG_FILE__'
errorlog = '__LOG_FILE__'
# https://docs.gunicorn.org/en/latest/settings.html#pidfile
pidfile = '__DATA_DIR__/gunicorn.pid' # /home/yunohost.app/$app/gunicorn.pid