Skip to content

Commit

Permalink
fix ip address in logs with requestAttributesEnable
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo authored Aug 5, 2024
1 parent 4ecbe85 commit 4778be2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions update-server-xml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function set_attribute {
set_attribute /Server/Service/Connector relaxedPathChars "$RELAXED_PATH_CHARS"
set_attribute /Server/Service/Connector relaxedQueryChars "$RELAXED_QUERY_CHARS"

# Enable request attributes so that, when using a reverse proxy, the original
# client ip is recorded in logs rather than the internal proxy ip
set_attribute /Server/Service/Engine/Host/Valve requestAttributesEnable "true"

#create RemoteIpValve if missing. this is needed so ERDDAP knows when its responding to https requests
#end result should look like:
#<Valve className="org.apache.catalina.valves.RemoteIpValve"
Expand Down

0 comments on commit 4778be2

Please sign in to comment.