aboutsummaryrefslogtreecommitdiffstats
path: root/main/uwsgi/uwsgi.ini
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-06-13 12:13:06 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-06-13 15:56:29 +0200
commitdfb4b4cbc698aaa4e4f1798d46e3fda349a599a6 (patch)
treed6921615042860e9d1353ae644d5c368071dff74 /main/uwsgi/uwsgi.ini
parentcffed188deeaab6395053d91ca464ce1495b9569 (diff)
downloadaports-dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6.tar.gz
aports-dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6.tar.bz2
aports-dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6.tar.xz
main/uwsgi: refactor init and cleanup
* remove extraneous patches * run uwsgi with its own user/group * add support for POSIX Capabilities (libcap) * simplify init with emperor mode * set base emperor config /etc/uwsgi/uwsgi.ini * set emperor dir to /etc/uwsgi/conf.d * put pid and socket into /run/uwsgi (created by init)
Diffstat (limited to 'main/uwsgi/uwsgi.ini')
-rw-r--r--main/uwsgi/uwsgi.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/uwsgi/uwsgi.ini b/main/uwsgi/uwsgi.ini
new file mode 100644
index 0000000000..d2a00a665d
--- /dev/null
+++ b/main/uwsgi/uwsgi.ini
@@ -0,0 +1,7 @@
+[uwsgi]
+uid = uwsgi
+gid = uwsgi
+emperor = /etc/uwsgi/conf.d
+stats = /run/uwsgi/stats.sock
+emperor-tyrant = true
+cap = setgid,setuid