Adds support for Real_ip in logs closes #106

This commit is contained in:
Ric Harvey
2017-02-10 10:05:52 +00:00
parent 0b30a3a545
commit cbf763305b
4 changed files with 38 additions and 2 deletions

View File

@@ -19,10 +19,13 @@ server {
sendfile off;
# Add stdout logging
error_log /dev/stdout info;
access_log /dev/stdout;
# Add option for x-forward-for (real ip when behind elb)
#real_ip_header X-Forwarded-For;
#set_real_ip_from 172.16.0.0/12;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html