Adding referece to stackoverflow

This commit is contained in:
Tim Schneider 2018-06-08 23:06:58 +02:00
parent 71f96d4c2b
commit 63300aa4db

View file

@ -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;
{{ if $.Env.ANONYMIZE_LOGGING }}
# Anonymize the ip address
# https://stackoverflow.com/a/27749834/3135319
map $remote_addr $ip_anonym1 {
default 0.0.0;
"~(?P<ip>(\d+)\.(\d+)\.(\d+))\.\d+" $ip;