From 3ca02037535b6621131993e18c2792c9ecc60b10 Mon Sep 17 00:00:00 2001 From: ADRN Date: Fri, 8 Mar 2024 21:25:43 +0100 Subject: store real IP from Jitsi --- cluster/prod/app/jitsi/config/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cluster') diff --git a/cluster/prod/app/jitsi/config/nginx.conf b/cluster/prod/app/jitsi/config/nginx.conf index c988059..6b486e2 100644 --- a/cluster/prod/app/jitsi/config/nginx.conf +++ b/cluster/prod/app/jitsi/config/nginx.conf @@ -37,6 +37,12 @@ http { access_log /dev/stdout; server_names_hash_bucket_size 64; + # Log real IPs + set_real_ip_from 10.0.0.0/8; + set_real_ip_from 172.16.0.0/12; + set_real_ip_from 192.168.0.0/16; + real_ip_header X-Forwarded-For; + # inspired by https://raw.githubusercontent.com/jitsi/docker-jitsi-meet/master/web/rootfs/defaults/meet.conf server { #listen 0.0.0.0:{{ env "NOMAD_PORT_https_port" }} ssl http2 default_server; -- cgit v1.2.3