aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod
diff options
context:
space:
mode:
authorADRN <adrien@luxeylab.net>2024-03-08 21:25:43 +0100
committerADRN <adrien@luxeylab.net>2024-03-08 21:25:43 +0100
commit3ca02037535b6621131993e18c2792c9ecc60b10 (patch)
tree75df2a0c505d06bd9592eaa39f572ba3d0691320 /cluster/prod
parentdde6ece4dbff93d86f8a7d4c2e193ab40b461721 (diff)
downloadnixcfg-3ca02037535b6621131993e18c2792c9ecc60b10.tar.gz
nixcfg-3ca02037535b6621131993e18c2792c9ecc60b10.zip
store real IP from Jitsi
Diffstat (limited to 'cluster/prod')
-rw-r--r--cluster/prod/app/jitsi/config/nginx.conf6
1 files changed, 6 insertions, 0 deletions
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;