Add example files for running clipperz with uwsgi and nginx

Additionally make changes to enable running clipperz from uwsgi
This commit is contained in:
jokajak
2016-04-24 08:35:37 -04:00
parent 72aa4ecfb6
commit 3574eacb25
4 changed files with 60 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
[uwsgi]
plugin = python
socket = /run/uwsgi/%n.sock
chmod-socket = 660
master = true
processes = 1
uid = clipperz
gid = clipperz
umask = 027
procname-master = uwsgi pm
vacuum = true
die-on-term = true
base = /home/clipperz/password-manager/target/flask/
module = clipperz
callable = app
venv = /home/clipperz/password-manager/target/flask/
#the variable that holds a flask application inside the module imported at line #6
callable = app
#location of log files
logto = /var/log/uwsgi/%n.log
env = PYTHON_EGG_CACHE=/var/tmp/clipperz
env = DATABASE_URL = 'mysql://clipperz:clipperz@localhost/clipperz'