2020-12-07 16:20:37 +01:00
|
|
|
"""
|
|
|
|
Configuration for Gunicorn
|
|
|
|
"""
|
|
|
|
import multiprocessing
|
|
|
|
|
2020-12-29 13:58:40 +01:00
|
|
|
|
2020-12-07 16:20:37 +01:00
|
|
|
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'
|
|
|
|
|
2020-12-08 09:31:10 +01:00
|
|
|
# https://docs.gunicorn.org/en/latest/settings.html#logging
|
|
|
|
accesslog = '__LOG_FILE__'
|
|
|
|
errorlog = '__LOG_FILE__'
|
2020-12-07 16:20:37 +01:00
|
|
|
|
|
|
|
# https://docs.gunicorn.org/en/latest/settings.html#pidfile
|
2022-09-15 18:16:57 +02:00
|
|
|
pidfile = '__FINALPATH__/gunicorn.pid'
|