Update nginx.conf
All checks were successful
Build Admin / Build image (push) Successful in 16s

This commit is contained in:
2026-03-21 11:06:08 +07:00
parent 0544ac9cbe
commit 2e6e63f173

View File

@@ -76,11 +76,18 @@ http {
# Host header must match upstream for Cloudflare # Host header must match upstream for Cloudflare
proxy_set_header Host api.elevenlabs.io; proxy_set_header Host api.elevenlabs.io;
# Pass through original headers (User-Agent, Accept, etc.)
# Do NOT set X-Real-IP or X-Forwarded-For — Cloudflare uses them for bot detection
proxy_set_header Connection ""; proxy_set_header Connection "";
# Scrub all headers that leak the original client IP
# Cloudflare reads these to determine "real" client geo
proxy_set_header X-Forwarded-For "";
proxy_set_header X-Real-IP "";
proxy_set_header True-Client-IP "";
proxy_set_header CF-Connecting-IP "";
proxy_set_header X-Client-IP "";
proxy_set_header Forwarded "";
proxy_set_header Via "";
# Remove proxy token before forwarding to upstream # Remove proxy token before forwarding to upstream
proxy_set_header X-Proxy-Token ""; proxy_set_header X-Proxy-Token "";
@@ -114,6 +121,16 @@ http {
proxy_set_header Host api.openai.com; proxy_set_header Host api.openai.com;
proxy_set_header Connection ""; proxy_set_header Connection "";
# Scrub all headers that leak the original client IP
proxy_set_header X-Forwarded-For "";
proxy_set_header X-Real-IP "";
proxy_set_header True-Client-IP "";
proxy_set_header CF-Connecting-IP "";
proxy_set_header X-Client-IP "";
proxy_set_header Forwarded "";
proxy_set_header Via "";
proxy_set_header X-Proxy-Token ""; proxy_set_header X-Proxy-Token "";
proxy_http_version 1.1; proxy_http_version 1.1;