summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jrdemasi@gmail.com>2019-06-07 00:03:33 -0600
committerJonathan DeMasi <jrdemasi@gmail.com>2019-06-07 00:03:33 -0600
commitedd2af47c4b6603583ccfeaa440bd5b187dd4d49 (patch)
treefd1f3aa65c79d1971e591801eacf80b17b4de58b
parent48e673650e651f08cb50a4e4b581a12022f59a50 (diff)
parentbc8caabcd94aa227696d9e2e345fe39cef627bfb (diff)
downloadconfigs-edd2af47c4b6603583ccfeaa440bd5b187dd4d49.tar
configs-edd2af47c4b6603583ccfeaa440bd5b187dd4d49.tar.gz
configs-edd2af47c4b6603583ccfeaa440bd5b187dd4d49.tar.bz2
configs-edd2af47c4b6603583ccfeaa440bd5b187dd4d49.tar.xz
configs-edd2af47c4b6603583ccfeaa440bd5b187dd4d49.zip
Merge branch 'master' of git.jthan.io:configs
-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