-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.ini
35 lines (32 loc) · 1.07 KB
/
app.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[uwsgi]
# django-related settings:
# the path(relative able) of the project
chdir = ./
#chdir=/home/
#in fact the AIR_System.wsgi is the wsgi.py in the dir AIR_System
module = proj.wsgi:application
max-requests = 5000
# run on back and write log
daemonize = %(chdir)uwsgi.log
# cut the log over the size(Byte) (50MB below)
log-maxsize = 50000000
status = %(chdir)uwsgi.status
pidfile = %(chdir)uwsgi.pid
# this socket is used to the connection between uWSGI and nginx
http-socket = :7000
# process-related settings:
master = true
# maximum number of worker processes.
processes = 4
# clean the environment when quit.
vacuum = true
# it will reload when happen any change on all things under the dir
#touch-reload = chdir
# reload when py file has been changed.
#py-auto-reload = 1
setuid uwsgiuser
setgid uwsgiuser
#if not set this character will throw error:"no request plugin is loaded, you will not be able to manage requests.you may need to install the package for your language of choice, or simply load it with --plugin."
plugin = python3
# uwsgi --stop uwsig.pid
# uwsgi --ini app.ini