Revise content structure (page bundles)

This commit is contained in:
Vri 🌈 2023-01-12 11:39:23 +01:00
parent 9128227ab1
commit cbf3e9df84
Signed by: vrifox
GPG key ID: D40098E5B60B2197
15 changed files with 14 additions and 8 deletions

View file

@ -0,0 +1,27 @@
---
title: "Privacy friendlier Nginx logging"
author: "Vrifox"
date: 2021-05-15T21:49:54+02:00
featured_image:
categories:
tags:
draft: true
type: "post"
---
Yesterday I changed the logging behaviour of my nginx. I did this to make it more privacy friendly and to declutter my log files. \
The ip address anonymization part is taken from [Ascraues Privacy Policy ](https://ascraeus.org/page/privacy/).
```
map $remote_addr $anon_remote_addr {
~(?P<ip>\d+\.\d+)\. $ip.0.0;
~(?P<ip>[^:]+:[^:]+): $ip::;
default 0.0.0.0;
}
log_format privacy '$anon_remote_addr [$time_local] '
'"$request" $status $bytes_sent ';
access_log /var/log/nginx/access.log privacy;
```