Fix nginx config.

This commit is contained in:
Dessalines 2019-12-13 18:38:30 -08:00
parent cffbb7cd58
commit e4cea91ea8

View file

@ -72,6 +72,8 @@ server {
expires max; expires max;
} }
} }
}
# Anonymize IP addresses # Anonymize IP addresses
# https://www.supertechcrew.com/anonymizing-logs-nginx-apache/ # https://www.supertechcrew.com/anonymizing-logs-nginx-apache/
map $remote_addr $remote_addr_anon { map $remote_addr $remote_addr_anon {
@ -84,4 +86,3 @@ server {
log_format main '$remote_addr_anon - $remote_user [$time_local] "$request" ' log_format main '$remote_addr_anon - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" "$http_user_agent"'; '$status $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /dev/stdout main; access_log /dev/stdout main;
}