Add some forwarding options to nginx and some log stuff to uwsgi
* 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>
This commit is contained in:
@@ -13,5 +13,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass app:3031;
|
uwsgi_pass app:3031;
|
||||||
|
uwsgi_param HTTP_X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
uwsgi_param REMOTE_ADDR $proxy_add_x_forwarded_for;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user