aboutsummaryrefslogtreecommitdiffstats
path: root/main/patchwork/nginx-uwsgi-patchwork-conf.ini
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-03-31 09:32:54 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-03-31 09:32:58 +0000
commit0616c2087e49917c3eff95041993b395ea8789cf (patch)
tree79be5fd230ca976711df82b693ad7fcc7bbfdd48 /main/patchwork/nginx-uwsgi-patchwork-conf.ini
parent9826cf80d4897c633bdf58e9a918a35184f8c09d (diff)
downloadaports-0616c2087e49917c3eff95041993b395ea8789cf.tar.bz2
aports-0616c2087e49917c3eff95041993b395ea8789cf.tar.xz
main/patchwork: upgrade to v1.1.1. Added nginx and uwsgi support
Diffstat (limited to 'main/patchwork/nginx-uwsgi-patchwork-conf.ini')
-rw-r--r--main/patchwork/nginx-uwsgi-patchwork-conf.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/patchwork/nginx-uwsgi-patchwork-conf.ini b/main/patchwork/nginx-uwsgi-patchwork-conf.ini
new file mode 100644
index 0000000000..bc487ca276
--- /dev/null
+++ b/main/patchwork/nginx-uwsgi-patchwork-conf.ini
@@ -0,0 +1,26 @@
+[uwsgi]
+project = patchwork
+base = /usr/share/webapps
+user = nginx
+group = www-data
+
+chdir = %(base)/%(project)
+pythonpath = %(base)/%(project)
+module = %(project).wsgi:application
+wsgi-file = %(project)/wsgi.py
+plugins = python
+
+master = true
+processes = 4
+# increase buffer size to avoid "502 bad gateway error"
+# "recv() failed (104: Connection reset by peer) while reading response header from upstream"
+buffer-size = 16384
+
+uid = %(user)
+gid = %(group)
+
+daemonize = /var/log/%(project).log
+socket = /run/%(project).sock
+chown-socket = nginx:www-data
+chmod-socket = 665
+vacuum = true