aaPanel_Kern
we are using guicorn as our startup method
gunicorn_conf.py
project directory
chdir = '/www/wwwroot/pcpa'
worker processes
workers = 4
threads per worker
threads = 2
user to run as
user = 'www'
🌟 FIX: Changed from 'sync' to 'gthread' to make the threads active
worker_class = 'gthread'
bind IP and port
bind = '127.0.0.1:8786'
🌟 FIX: Removed quotes so these are integers, preventing boot crashes
max_requests = 2000
max_requests_jitter = 200
PID file path (used for stopping and restarting; do not remove)
pidfile = '/www/wwwroot/pcpa/gunicorn.pid'
access log and error log paths, file name do not change 'gunicorn_acess.log', 'gunicorn_error.log'
accesslog = '/www/wwwlogs/python/pcpa/gunicorn_acess.log'
errorlog = '/www/wwwlogs/python/pcpa/gunicorn_error.log'
Log level
loglevel = 'info'