-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwsgi.ini
executable file
·37 lines (27 loc) · 992 Bytes
/
uwsgi.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
36
37
[uwsgi]
# Need this plugin since uwsgi and uwsgi python plugin are installed with yum
# If uwsgi installed with pip, no need this
# plugin = python3
# So uwsgi knows where to mount the app
chdir = /opt/hubmap/member-ui
#set virtual environment cdb135
virtualenv = /opt/hubmap/member-ui/venv-member-ui
# Application's callbale
module = wsgi:application
# Location of uwsgi log file
logto = /opt/hubmap/member-ui/logs/uwsgi-member-ui.log
# Master with 2 worker process (based on CPU number)
master = true
processes = 2
# Write process id into file, will need this for stopping uwsgi
pidfile = /var/run/hubmap-member-ui-uwsgi.pid
# Use web port socket for integration with nginx
# Use localhost because the nginx and uwsgi running on the same VM
socket = localhost:5000
# Run the uWSGI process as user nginx for permission consistency with Wordpress
uid=nginx
gid=nginx
# Enable socket cleanup when process stop
vacuum = true
# Ensure compatibility with init system
die-on-term = true