From 63300aa4db8fe3c52d4b1d3b38db3c7ab80fb820 Mon Sep 17 00:00:00 2001 From: Tim Schneider Date: Fri, 8 Jun 2018 23:06:58 +0200 Subject: [PATCH] Adding referece to stackoverflow --- nginx.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx.tmpl b/nginx.tmpl index 1a624d0..c0daf3f 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -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(\d+)\.(\d+)\.(\d+))\.\d+" $ip;