feat: add trust proxy support for correct IP logging behind reverse proxies (v2.7.6)
- Add TRUST_PROXY environment variable to enable proxy header trust - Configure Express trust proxy in both HTTP server implementations - Fix issue #19: Docker internal IPs logged instead of real client IPs - Update documentation with reverse proxy configuration guide - Add examples for nginx proxy header forwarding - Maintain backward compatibility (disabled by default) When TRUST_PROXY=1 is set, the server will correctly log client IPs from X-Forwarded-For headers instead of proxy/container IPs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
13
CLAUDE.md
13
CLAUDE.md
@@ -6,7 +6,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
|
||||
n8n-mcp is a comprehensive documentation and knowledge server that provides AI assistants with complete access to n8n node information through the Model Context Protocol (MCP). It serves as a bridge between n8n's workflow automation platform and AI models, enabling them to understand and work with n8n nodes effectively.
|
||||
|
||||
## ✅ Latest Updates (v2.7.5)
|
||||
## ✅ Latest Updates (v2.7.6)
|
||||
|
||||
### Update (v2.7.6) - Trust Proxy Support for Correct IP Logging:
|
||||
- ✅ **NEW: TRUST_PROXY support** - Log real client IPs when behind reverse proxy
|
||||
- ✅ **FIXED: Issue #19** - Docker internal IPs no longer logged when proxy configured
|
||||
- ✅ **ENHANCED: HTTP deployment** - Better nginx/proxy configuration documentation
|
||||
- ✅ **FLEXIBLE: Proxy hop configuration** - Support for single or multiple proxy layers
|
||||
- ✅ **BACKWARD COMPATIBLE**: Defaults to current behavior when not configured
|
||||
|
||||
### Update (v2.7.5) - AUTH_TOKEN_FILE Support & Known Issues:
|
||||
- ✅ **NEW: AUTH_TOKEN_FILE support** - Read authentication token from file (Docker secrets compatible)
|
||||
@@ -480,6 +487,10 @@ NODE_ENV=development
|
||||
PORT=3000
|
||||
AUTH_TOKEN=your-secure-token
|
||||
|
||||
# Trust proxy for correct IP logging (optional)
|
||||
# Set to 1 when behind a reverse proxy (Nginx, etc.)
|
||||
TRUST_PROXY=0
|
||||
|
||||
# MCP Configuration
|
||||
MCP_SERVER_NAME=n8n-documentation-mcp
|
||||
MCP_SERVER_VERSION=1.0.0
|
||||
|
||||
Reference in New Issue
Block a user