Skip to content

Commit

Permalink
FCREPO-3846: Activate RemoteIpValve (#16)
Browse files Browse the repository at this point in the history
* FCREPO-3846: Activate RemoteIpValve

* FCREPO-3846: Add hostHeader and remoteIpHeader
  • Loading branch information
andyundso authored Sep 14, 2022
1 parent f3dd87a commit d7c69a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tomcat/conf/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />

<!-- Detect if Fedora is running behind a reverse proxy -->
<Valve className="org.apache.catalina.valves.RemoteIpValve"
protocolHeader="X-Forwarded-Proto"
hostHeader="X-Forwarded-Host"
remoteIpHeader="X-Forwarded-For" />
</Host>
</Engine>
</Service>
Expand Down

0 comments on commit d7c69a4

Please sign in to comment.