ingress-nginx: Log mit host/Land, Rate-Limit-Status 429

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-25 11:19:25 +01:00
co-authored by Claude Opus 5.5
parent ef1fd33531
commit 3ad30dcdec
+5
View File
@@ -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" 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" use-geoip2: "true"
geoip2-autoreload-in-minutes: "1440" 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 # Geo restriction for publicly exposed hosts: everything not from DE gets 403
# (also unknown/private IPs - LAN/Tailscale use the internal hostnames instead). # (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 # Cloudflare-only hosts: since tv.smokyzone.de (DNS-only) reveals the home IP, the