django-fritzconnection_ynh/conf/gunicorn.conf.py

21 lines
530 B
Python
Raw Permalink Normal View History

2022-04-02 17:44:57 +02:00
"""
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
2024-03-28 22:18:52 +01:00
accesslog = '/var/log/__APP__/__APP__.log'
errorlog = '/var/log/__APP__/__APP__.log'
2022-04-02 17:44:57 +02:00
# https://docs.gunicorn.org/en/latest/settings.html#pidfile
2024-03-28 22:18:52 +01:00
pidfile = '__INSTALL_DIR__/app/gunicorn.pid'