-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathuwsgi.ini
37 lines (35 loc) · 1.02 KB
/
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]
protocol = uwsgi
socket = /var/run/gen3/uwsgi.sock
buffer-size = 32768
uid = nginx
gid = nginx
chown-socket = nginx:nginx
chmod-socket = 666
master = true
harakiri-verbose = true
# No global HARAKIRI, using only user HARAKIRI, because export overwrites it
# Cannot overwrite global HARAKIRI with user's: https://git.io/fjYuD
# harakiri = 45
http-timeout = 45
socket-timeout = 45
worker-reload-mercy = 45
reload-mercy = 45
mule-reload-mercy = 45
disable-logging = true
wsgi-file=/fence/wsgi.py
plugins = python3
vacuum = true
pythonpath = /var/www/fence/
pythonpath = /fence/
# poetry installs git dependencies at /usr/local/src
pythonpath = /usr/local/src/*
# metrics setup
stats = 127.0.0.1:9191
stats-http = true
env = prometheus_multiproc_dir=/var/tmp/uwsgi_flask_metrics
exec-asap = /fence/clear_prometheus_multiproc /var/tmp/uwsgi_flask_metrics
# Initialize application in worker processes, not master. This prevents the
# workers from all trying to open the same database connections at startup.
lazy = true
lazy-apps = true