From bc8caabcd94aa227696d9e2e345fe39cef627bfb Mon Sep 17 00:00:00 2001 From: Jonathan DeMasi Date: Sat, 11 May 2019 17:25:00 -0600 Subject: adding some new configs for uwsgi --- uwsgi/django.ini | 17 +++++++++++++++++ uwsgi/uwsgi.ini | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 uwsgi/django.ini create mode 100644 uwsgi/uwsgi.ini 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 -- cgit v1.2.3