Add server.tomcat.port-header support

Update Tomcat ServerProperties to support the RemoteIpValve portHeader
property.

Fixes gh-1616
This commit is contained in:
Phillip Webb
2014-09-25 13:04:12 -07:00
parent 0dc46a2fe7
commit bff39e954e
3 changed files with 15 additions and 1 deletions

View File

@@ -74,7 +74,8 @@ content into your application; rather pick only the properties that you need.
192\.168\.\d{1,3}\.\d{1,3}|\
169\.254\.\d{1,3}\.\d{1,3}|\
127\.\d{1,3}\.\d{1,3}\.\d{1,3} # regular expression matching trusted IP addresses
server.tomcat.protocol-header=x-forwarded-proto # ssl forward headers
server.tomcat.protocol-header=x-forwarded-proto # front end proxy forward header
server.tomcat.port-header= # front end proxy port header
server.tomcat.remote-ip-header=x-forwarded-for
server.tomcat.basedir=/tmp # base dir (usually not needed, defaults to tmp)
server.tomcat.background-processor-delay=30; # in seconds