2021-02-05 02:11:19 +00:00
|
|
|
[uwsgi]
|
2021-02-05 05:15:44 +00:00
|
|
|
die-on-term = true
|
|
|
|
enable-threads = true
|
|
|
|
log-format = UWSGI uwsgi "%(method) %(uri) %(proto)" %(status) %(size) %(msecs)ms [PID:%(pid):Worker-%(wid)] [RSS:%(rssM)MB]
|
|
|
|
# daemonize uwsgi and write messages into given log
|
2021-02-05 20:29:03 +00:00
|
|
|
daemonize = {hd}/saleor/uwsgi-emperor.log
|
2021-02-05 02:11:19 +00:00
|
|
|
# enable uwsgi master process
|
2021-02-05 05:15:44 +00:00
|
|
|
master = true
|
|
|
|
max-requests = 100
|
|
|
|
memory-report = true
|
|
|
|
module = saleor.wsgi:application
|
|
|
|
processes = 4
|
|
|
|
static-map = /static=/app/static
|
|
|
|
mimefile = /etc/mime.types
|
|
|
|
ignore-sigpipe = true
|
|
|
|
ignore-write-errors = true
|
|
|
|
disable-write-exception = true
|
|
|
|
# Modifications
|
2021-02-05 17:36:43 +00:00
|
|
|
socket = {hd}/run/saleor.sock
|
2021-02-05 02:11:19 +00:00
|
|
|
# socket permissions
|
2021-02-05 06:08:14 +00:00
|
|
|
chown-socket = {un}:www-data
|
2021-02-05 05:15:44 +00:00
|
|
|
chmod-socket = 660
|
|
|
|
strict = true
|
|
|
|
need-app = true
|
|
|
|
uid = {un}
|
|
|
|
# full path to python virtual env
|
|
|
|
home = {hd}/env/saleor
|
|
|
|
# full path to Django project's root directory
|
2021-02-06 02:47:14 +00:00
|
|
|
chdir = {hd}/saleor/
|