Adding referece to stackoverflow
This commit is contained in:
parent
71f96d4c2b
commit
63300aa4db
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ map $scheme $proxy_x_forwarded_ssl {
|
||||||
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
{{ if $.Env.ANONYMIZE_LOGGING }}
|
{{ if $.Env.ANONYMIZE_LOGGING }}
|
||||||
|
# Anonymize the ip address
|
||||||
|
# https://stackoverflow.com/a/27749834/3135319
|
||||||
map $remote_addr $ip_anonym1 {
|
map $remote_addr $ip_anonym1 {
|
||||||
default 0.0.0;
|
default 0.0.0;
|
||||||
"~(?P<ip>(\d+)\.(\d+)\.(\d+))\.\d+" $ip;
|
"~(?P<ip>(\d+)\.(\d+)\.(\d+))\.\d+" $ip;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue