* nginx needs to add X-Forwarded-For and REMOTE_ADDR headers to get the IP address properly * uwsgi now logs 400 errors and adds the REMOTE_ADDR to the log file Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
15 lines
262 B
INI
15 lines
262 B
INI
[uwsgi]
|
|
logformat = %(method) %(status) %(addr) %(uri) %(proto)
|
|
log-4xx = true
|
|
log-5xx = true
|
|
#uid = uwsgi
|
|
processes = 5
|
|
|
|
harakiri = 20
|
|
maxrequests = 5000
|
|
|
|
socket = 0.0.0.0:3031
|
|
#plugins = python
|
|
protocol = uwsgi
|
|
chdir = /app
|
|
module = threadchat.wsgi:application |