mirror of
https://github.com/YunoHost-Apps/pytition_ynh.git
synced 2024-09-03 20:16:08 +02:00
da29c0bc0c
When uploading images in mediaroot, files must have gid www-data so that nginx can serve them. Also, image upload script URL for TinyMCE editor was wrong if STATIC_ROOT is not '/static/' Tinymce js url was wrong in this case also.
27 lines
627 B
YAML
27 lines
627 B
YAML
uwsgi:
|
|
# Who will run the code
|
|
uid: __APP__
|
|
gid: www-data
|
|
|
|
# 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
|
|
virtualenv: __FINALPATH__/venv
|
|
pythonpath: __FINALPATH__
|
|
chdir: __FINALPATH__/pytition/pytition
|
|
env: DJANGO_SETTINGS_MODULE=pytition.settings.config
|
|
|
|
socket: /run/__APP__/app.socket
|
|
mount: __PATH__=pytition/wsgi.py
|
|
manage-script-name: true
|
|
|
|
logto: /var/log/__APP__/__APP__-uwsgi.log
|