summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uwsgi/django.ini17
-rw-r--r--uwsgi/uwsgi.ini9
2 files changed, 26 insertions, 0 deletions
diff --git a/uwsgi/django.ini b/uwsgi/django.ini
new file mode 100644
index 0000000..0e3f625
--- /dev/null
+++ b/uwsgi/django.ini
@@ -0,0 +1,17 @@
+[uwsgi]
+socket = /home/mysite/run/uwsgi.sock
+# This is the name of the plugin on centos7
+plugin = python36
+wsgi-file = /home/mysite/mysite/wsgi.py
+process = 4
+callable = application
+# Create this directory :-)
+logto = /home/mysite/logs/mysite.log
+virtualenv = /home/mysite/venv
+chdir = /home/mysite
+uid = mysite
+gid = mysite
+chmod-socket = 660
+# Only do this if you actually want uwsgi to auto-reload
+py-autoreload = 1
+
diff --git a/uwsgi/uwsgi.ini b/uwsgi/uwsgi.ini
new file mode 100644
index 0000000..97631ca
--- /dev/null
+++ b/uwsgi/uwsgi.ini
@@ -0,0 +1,9 @@
+[uwsgi]
+# Be sure to use uid and gid options in your individual site configs!
+uid = root
+gid = root
+pidfile = /var/run/uwsgi/uwsgi.pid
+emperor = /etc/uwsgi.d
+stats = /var/run/uwsgi/stats.sock
+chmod-socket = 660
+emperor-tyrant = true