From 069c96a4fec0d4ba83beac975676cfdb3d293d62 Mon Sep 17 00:00:00 2001 From: Sigri Date: Wed, 20 Mar 2024 10:43:25 +0100 Subject: [PATCH] Add ip logging --- docker/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index e387ad2c..747daa2c 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -58,4 +58,7 @@ http { error_log /var/log/nginx/realt-api_error.log; access_log /var/log/nginx/realt-api_access.log; } + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from 172.18.0.0/24; }