summaryrefslogtreecommitdiffstats
path: root/static/joplinapi.uwsgi.ini
diff options
context:
space:
mode:
Diffstat (limited to 'static/joplinapi.uwsgi.ini')
-rw-r--r--static/joplinapi.uwsgi.ini20
1 files changed, 20 insertions, 0 deletions
diff --git a/static/joplinapi.uwsgi.ini b/static/joplinapi.uwsgi.ini
new file mode 100644
index 0000000..84f3128
--- /dev/null
+++ b/static/joplinapi.uwsgi.ini
@@ -0,0 +1,20 @@
+[uwsgi]
+master = true
+project = JoplinWebApi
+base = /var/www
+
+chdir = %(base)/%(project)
+home = %(base)/%(project)/venv
+module = joplinapi:app
+plugins = python3
+manage-script-name = true
+
+processes = 3
+uid = www-data
+gid = www-data
+logto = /var/log/uwsgi/app/%(project).log
+logformat = '%(addr) - %(host) ["%(ltime)"] "%(method) %(uri)" "%(status)" "%(cl)" "%(referrer)" rt="%(time)" ut="%(secs)'
+
+vacuum = true
+die-on-term = true
+touch-reload = %(chdir)/reload.file