From a728ff227e1601172f97c77bfee5a6c52d57409c Mon Sep 17 00:00:00 2001 From: LukeGus Date: Sun, 5 Oct 2025 23:51:53 -0500 Subject: [PATCH] Add real client IP --- docker/nginx-https.conf | 3 +++ docker/nginx.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker/nginx-https.conf b/docker/nginx-https.conf index aaf5e739..f64e8e4e 100644 --- a/docker/nginx-https.conf +++ b/docker/nginx-https.conf @@ -10,6 +10,9 @@ http { keepalive_timeout 65; client_header_timeout 300s; + set_real_ip_from 127.0.0.1; + real_ip_header X-Forwarded-For; + ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384; ssl_prefer_server_ciphers off; diff --git a/docker/nginx.conf b/docker/nginx.conf index 9f37c80a..c180c180 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -10,6 +10,9 @@ http { keepalive_timeout 65; client_header_timeout 300s; + set_real_ip_from 127.0.0.1; + real_ip_header X-Forwarded-For; + ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384; ssl_prefer_server_ciphers off;