2022-04-05 16:15:54 +02:00
|
|
|
uwsgi:
|
|
|
|
# Who will run the code
|
|
|
|
uid: __APP__
|
2022-05-14 15:26:37 +02:00
|
|
|
gid: www-data
|
2022-04-05 16:15:54 +02:00
|
|
|
|
|
|
|
# Number of workers
|
|
|
|
workers: 10
|
|
|
|
|
|
|
|
# The right granted on the created socket
|
|
|
|
chmod-socket: 666
|
|
|
|
vacuum: true
|
|
|
|
|
|
|
|
# Plugin to use and interpretor config
|
|
|
|
master: true
|
|
|
|
plugin: python3
|
|
|
|
|
|
|
|
# Virtualenv and python path
|
2023-04-26 17:44:04 +02:00
|
|
|
virtualenv: __INSTALL_DIR__/venv
|
|
|
|
pythonpath: __INSTALL_DIR__
|
|
|
|
chdir: __INSTALL_DIR__/pytition/pytition
|
2022-04-05 16:15:54 +02:00
|
|
|
env: DJANGO_SETTINGS_MODULE=pytition.settings.config
|
|
|
|
|
|
|
|
socket: /run/__APP__/app.socket
|
2022-04-12 18:30:40 +02:00
|
|
|
mount: __PATH__=pytition/wsgi.py
|
2022-04-05 16:15:54 +02:00
|
|
|
manage-script-name: true
|
|
|
|
|
|
|
|
logto: /var/log/__APP__/__APP__-uwsgi.log
|