Set real IP from local proxy
This commit is contained in:
parent
c1e74a4494
commit
e8427dc81d
7 changed files with 23 additions and 0 deletions
|
@ -78,6 +78,9 @@ in
|
|||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
set_real_ip_from 127.0.0.1;
|
||||
real_ip_header proxy_protocol;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue