Skip to content

Commit

Permalink
ansible: enable RemoteIpValve by default
Browse files Browse the repository at this point in the history
See discussion at #147.

Signed-off-by: Pierre-Alexandre Meyer <[email protected]>
  • Loading branch information
pierre committed May 3, 2019
1 parent d8beaf7 commit 74b3a78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/templates/tomcat/conf/server.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
unpackWARs="true"
autoDeploy="false"><!-- Disable autoDeploy to avoid restarts when running KPM install -->

<Valve className="org.apache.catalina.valves.RemoteIpValve"
protocolHeader="x-forwarded-proto"
portHeader="x-forwarded-port" />

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log."
Expand Down

0 comments on commit 74b3a78

Please sign in to comment.