Skip to content
Snippets Groups Projects
eccs.ini.template 787 B
[uwsgi]
project        = eccs
base           = /home/<USER>

chdir          = %(base)/%(project)

master         = true
processes      = 2

uid            = <USER>
gid            = <USER>

socket         = 127.0.0.1:8000
chmod-socket   = 660
vacuum         = true

die-on-term    = true

# set max connections to 128 in uWSGI
listen         = 128

virtualenv     = eccs-venv
wsgi-file      = eccs-wsgi.py

logto          = logs/%(project)-uwsgi.log
log-maxsize    = 100000000
log-backupname = logs/%(project)-uwsgi.old.log

# Each 1000 request restart workers
max-requests   = 1000

# respawn processes taking more than takes more then ... seconds
harakiri       = 20

pidfile        = %(project).pid
touch-reload   = %(project).ini
#stats         = 127.0.0.1:9193
#stats-http    = True