1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scovie_ynh.git synced 2024-09-03 20:16:29 +02:00
scovie_ynh/conf/gunicorn.conf.py

23 lines
550 B
Python
Raw Normal View History

2024-01-18 14:19:07 +01:00
#!/usr/bin/env python3
2023-05-26 19:09:08 +02:00
"""
Configuration for Gunicorn
"""
2024-01-18 14:19:07 +01:00
2023-05-26 19:09:08 +02:00
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-01-18 14:19:07 +01:00
accesslog = '/var/log/__APP__/__APP__.log'
errorlog = '/var/log/__APP__/__APP__.log'
2023-05-26 19:09:08 +02:00
# https://docs.gunicorn.org/en/latest/settings.html#pidfile
2024-01-18 13:19:08 +01:00
pidfile = '__INSTALL_DIR__/gunicorn.pid'