Skip to content

Commit

Permalink
Respect X-Forwarded headers in responses. (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: Nigel Banks <[email protected]:w>
  • Loading branch information
nigelgbanks and Nigel Banks authored Jun 19, 2022
1 parent 9dcbac9 commit b8c3502
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tomcat/rootfs/etc/confd/templates/server.xml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
pattern="%h %l %u %t &quot;%r&quot; %s %b"
rotatable="false"/>

<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="x-forwarded-for"
proxiesHeader="x-forwarded-by"
protocolHeader="x-forwarded-proto" />

</Host>
</Engine>
</Service>
Expand Down

0 comments on commit b8c3502

Please sign in to comment.