Skip to content

Commit

Permalink
feat: Add TRUST_PROXY configuration to .env.example for reverse proxy…
Browse files Browse the repository at this point in the history
… settings
  • Loading branch information
pedrojreis authored and gafda committed Feb 17, 2025
1 parent b4564ab commit fc1c37b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ DOMAIN_CLIENT=http://localhost:3080
DOMAIN_SERVER=http://localhost:3080

NO_INDEX=true
# Use the address that is at most n number of hops away from the Express application.
# req.socket.remoteAddress is the first hop, and the rest are looked for in the X-Forwarded-For header from right to left.
# A value of 0 means that the first untrusted address would be req.socket.remoteAddress, i.e. there is no reverse proxy.
# Defaulted to 1.
TRUST_PROXY=1

#===============#
# JSON Logging #
Expand Down

0 comments on commit fc1c37b

Please sign in to comment.