Skip to content

Commit 404153a

Browse files
bclozelsnicoll
authored andcommitted
Minor fixes in howto documentation re:SSL config
Fixes a couple of typos in the documentation: * `x-forwarded-protocol` is not the standard name for this header * `require_https` is not an existing property, but rather `require_ssl`
1 parent 23e7028 commit 404153a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ most proxies, and if you only set one the other will be set automatically):
474474
[indent=0]
475475
----
476476
server.tomcat.remote_ip_header=x-forwarded-for
477-
server.tomcat.protocol_header=x-forwarded-protocol
477+
server.tomcat.protocol_header=x-forwarded-proto
478478
----
479479

480480
If your proxy uses different headers you can customize the valve's configuration by adding
@@ -1450,7 +1450,7 @@ by adding some entries to `application.properties`, e.g.
14501450

14511451
Spring Security can also be configured to require a secure channel for all (or some
14521452
requests). To switch that on in a Spring Boot application you just need to set
1453-
`security.require_https` to `true` in `application.properties`.
1453+
`security.require_ssl` to `true` in `application.properties`.
14541454

14551455

14561456

0 commit comments

Comments
 (0)