From 3ad30dcdec484538d6ff10341c72cc0f53eddc0b Mon Sep 17 00:00:00 2001 From: SmokyZone Date: Sun, 25 Oct 2026 11:19:25 +0100 Subject: [PATCH] ingress-nginx: Log mit host/Land, Rate-Limit-Status 429 Co-Authored-By: Claude Opus 5.5 --- values.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/values.yaml b/values.yaml index 3976a59..f5d288e 100644 --- a/values.yaml +++ b/values.yaml @@ -189,6 +189,11 @@ applications: proxy-real-ip-cidr: "173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22,2400:cb00::/32,2606:4700::/32,2803:f800::/32,2405:b500::/32,2405:8100::/32,2a06:98c0::/29,2c0f:f248::/32" use-geoip2: "true" geoip2-autoreload-in-minutes: "1440" + # Default upstreaminfo format + host and GeoIP country, for scripts/tv-access-report.sh. + log-format-upstream: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $request_length $request_time [$proxy_upstream_name] [$proxy_alternative_upstream_name] $upstream_addr $upstream_response_length $upstream_response_time $upstream_status $req_id host=$host cc=$geoip2_country_code' + # Rate-limit hits as 429 (default 503 is indistinguishable from real outages). + limit-req-status-code: "429" + limit-conn-status-code: "429" # Geo restriction for publicly exposed hosts: everything not from DE gets 403 # (also unknown/private IPs - LAN/Tailscale use the internal hostnames instead). # Cloudflare-only hosts: since tv.smokyzone.de (DNS-only) reveals the home IP, the