diff --git a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index cd3b8a1ede1..f313da95add 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -70,10 +70,10 @@ content into your application; rather pick only the properties that you need. server.ssl.trust-store-type= server.tomcat.access-log-pattern= # log pattern of the access log server.tomcat.access-log-enabled=false # is access logging enabled - server.tomcat.internal-proxies=10\.\d{1,3}\.\d{1,3}\.\d{1,3}|\ - 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.internal-proxies=10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\ + 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 # front end proxy forward header server.tomcat.port-header= # front end proxy port header server.tomcat.remote-ip-header=x-forwarded-for diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 895b4a5475b..9f6f2edc225 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -493,7 +493,7 @@ to `application.properties`, e.g. [indent=0] ---- - server.tomcat.internal_proxies=192\.168\.\d{1,3}\.\d{1,3} + server.tomcat.internal_proxies=192\\.168\\.\\d{1,3}\\.\\d{1,3} ---- Alternatively, you can take complete control of the configuration of the `RemoteIpValve`