1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00
apps/tools/app_generator/gunicorn.py
2024-04-23 20:04:26 +02:00

14 lines
485 B
Python

import os
install_dir = os.path.dirname(__file__)
command = f"{install_dir}/venv/bin/gunicorn"
pythonpath = install_dir
workers = 4
user = "appgenerator"
bind = f"unix:{install_dir}/sock"
pid = "/run/gunicorn/appgenerator-pid"
errorlog = "/var/log/appgenerator/error.log"
accesslog = "/var/log/appgenerator/access.log"
access_log_format = '%({X-Real-IP}i)s %({X-Forwarded-For}i)s %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
loglevel = "warning"
capture_output = True