Make RemoteIpValve's protocolHeaderHttpsValue configurable via the env

Closes gh-3289
This commit is contained in:
Andy Wilkinson
2015-06-22 13:43:02 +01:00
parent 5f2ffdb9e2
commit 01ba0f7571
3 changed files with 18 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ content into your application; rather pick only the properties that you need.
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 # front end proxy forward header
server.tomcat.protocol-header-https-value=https # value of the protocol header that indicates that the incoming request uses SSL
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)