Support configurable trust proxy hop count

This commit is contained in:
defiQUG
2026-04-13 21:35:02 -07:00
parent ae744e4be4
commit c80b2a543a
3 changed files with 26 additions and 2 deletions

View File

@@ -25,6 +25,10 @@ CRYPTO_COM_API_SECRET=
# ----------------------------------------------------------------------------
# API behind reverse proxy (rate limits, logging)
# TRUST_PROXY=1
# TRUST_PROXY_HOPS=1
# When TRUST_PROXY=1, Express uses this hop count (default 1, max 10). Usually **1**: Node sees
# one reverse proxy peer (NPM or the Phoenix API hub). Raise only if another proxy terminates
# TCP in series before dbis_core (rare); validate client IP / rate limits after changing.
# ----------------------------------------------------------------------------
# IRU marketplace — rate limits (optional; sensible defaults in code)