diff --git a/nginx.conf b/nginx.conf index cd16a31..789f038 100644 --- a/nginx.conf +++ b/nginx.conf @@ -13,5 +13,7 @@ server { location / { include uwsgi_params; uwsgi_pass app:3031; + uwsgi_param HTTP_X-Forwarded-For $proxy_add_x_forwarded_for; + uwsgi_param REMOTE_ADDR $proxy_add_x_forwarded_for; } } diff --git a/uwsgi.ini b/uwsgi.ini index e8836c9..ca7083e 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -1,5 +1,6 @@ [uwsgi] -logformat = %(method) %(status) %(uri) %(proto) +logformat = %(method) %(status) %(addr) %(uri) %(proto) +log-4xx = true log-5xx = true #uid = uwsgi processes = 5