Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
02e925cb
Commit
02e925cb
authored
Nov 25, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gh-1989' into 1.1.x
parents
9ef83358
2b4eee5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+4
-4
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+5
-1
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
02e925cb
...
...
@@ -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
...
...
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
02e925cb
...
...
@@ -493,9 +493,13 @@ 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}
----
NOTE: The double backslashes are only required when you're using a properties file for
configuration. If you are using YAML, single backslashes are sufficient and a value
that's equivalent to the one shown above would be `192\.168\.\d{1,3}\.\d{1,3}`.
Alternatively, you can take complete control of the configuration of the `RemoteIpValve`
by configuring and adding it in a `TomcatEmbeddedServletContainerFactory` bean.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment