From 2319dbd7e926fdc3697eaaf7750414475dad3bf9 Mon Sep 17 00:00:00 2001 From: pieter Date: Mon, 2 Feb 2026 00:14:53 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BCIP=E5=8F=96?= =?UTF-8?q?=E5=BE=97=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- values.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/values.yaml b/values.yaml index bff0c53..1a76b3b 100644 --- a/values.yaml +++ b/values.yaml @@ -44,6 +44,28 @@ wordpress: # ads.txt content # google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0 +nginx: + extraConfig: | + # リアルIPの取得設定 + real_ip_header X-Forwarded-For; + real_ip_recursive on; + + # Kubernetesクラスタ内のIPレンジを信頼 + 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; + + # CloudflareやAWS ALB等を使っている場合は追加 + # set_real_ip_from 173.245.48.0/20; + # set_real_ip_from 103.21.244.0/22; + # ... (Cloudflareの他のIPレンジ) + + # FastCGIパラメータにリアルIPを渡す + fastcgiParams: + REMOTE_ADDR: $remote_addr + HTTP_X_REAL_IP: $realip_remote_addr + HTTP_X_FORWARDED_FOR: $proxy_add_x_forwarded_for + # Service設定 service: type: LoadBalancer