-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwsgi.ini-default
50 lines (39 loc) · 1.11 KB
/
wsgi.ini-default
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
38
39
40
41
42
43
44
45
46
47
48
49
50
[uwsgi]
socket = 127.0.0.1:3402
threads = 2
master = True
chdir = /data/code/opsJobs
# The module entry point for your app. For my purposes, it is project:app
module = app:app
callable = app
daemonize = /data/log/opsJobs.log
# Add environment variables.
# FLASK
env = FLASK_ENV=production
env = FLASK_DEBUG=False
#logto = /data/log/uwsgi/uwsgi.log
# 100 mb. Rather use log rotate to handle log rotation.
# log-maxsize = 100000000
# logfile-chown = True
#Have a master process
master = True
pidfile=/tmp/opsJobs.pid
# Reload when that master process file is touched with touch filename
#touch-reload=/tmp/uwsgimaster.pid
#For new relic
enable-threads = True
single-interpreter = True
# This should make uwsgi restart brutally which may be needed when the server crashes
die-on-term = True
# More processes
processes = 4
# respawn processes taking more than 30 seconds
harakiri = 30
# Shoud prevent hikiri for kicking in on uploads
post-buffering = True
# respawn processes after serving 5000 requests
max-requests = 5000
# Enable stats
#stats = /tmp/uwsgistats.socket
# Turn this off for production
# catch-exceptions = True