Polish "Add dedicated namespace for RemoteIpValve properties"
See gh-18489
This commit is contained in:
@@ -804,8 +804,8 @@ If you use Tomcat, you can additionally configure the names of the headers used
|
||||
|
||||
[indent=0]
|
||||
----
|
||||
server.tomcat.remote-ip-header=x-your-remote-ip-header
|
||||
server.tomcat.protocol-header=x-your-protocol-header
|
||||
server.tomcat.remoteip.remote-ip-header=x-your-remote-ip-header
|
||||
server.tomcat.remoteip.protocol-header=x-your-protocol-header
|
||||
----
|
||||
|
||||
Tomcat is also configured with a default regular expression that matches internal proxies that are to be trusted.
|
||||
@@ -814,7 +814,7 @@ You can customize the valve's configuration by adding an entry to `application.p
|
||||
|
||||
[indent=0]
|
||||
----
|
||||
server.tomcat.internal-proxies=192\\.168\\.\\d{1,3}\\.\\d{1,3}
|
||||
server.tomcat.remoteip.internal-proxies=192\\.168\\.\\d{1,3}\\.\\d{1,3}
|
||||
----
|
||||
|
||||
NOTE: The double backslashes are required only when you use a properties file for configuration.
|
||||
@@ -2203,8 +2203,8 @@ You can switch on the valve by adding some entries to `application.properties`,
|
||||
|
||||
[source,properties,indent=0,configprops]
|
||||
----
|
||||
server.tomcat.remote-ip-header=x-forwarded-for
|
||||
server.tomcat.protocol-header=x-forwarded-proto
|
||||
server.tomcat.remoteip.remote-ip-header=x-forwarded-for
|
||||
server.tomcat.remoteip.protocol-header=x-forwarded-proto
|
||||
----
|
||||
|
||||
(The presence of either of those properties switches on the valve.
|
||||
|
||||
Reference in New Issue
Block a user