From a832e4bb381f69def72f1528c6226477eff93288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vilius=20=C5=A0umskas?= Date: Thu, 21 Mar 2024 16:03:25 +0200 Subject: [PATCH 1/2] Fix forward-headers-strategy documentation regarding cloud defaults Update the reference documentation since all cloud platform use forward-headers-strategy=NATIVE. See gh-40054 --- .../src/docs/antora/modules/how-to/pages/webserver.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc index 68dc370ce7a..d3426203ff0 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc @@ -465,7 +465,7 @@ You can use them in your application by setting configprop:server.forward-header TIP: If you are using Tomcat and terminating SSL at the proxy, configprop:server.tomcat.redirect-context-root[] should be set to `false`. This allows the `X-Forwarded-Proto` header to be honored before any redirects are performed. -NOTE: If your application runs in Cloud Foundry, Heroku or Kubernetes, the configprop:server.forward-headers-strategy[] property defaults to `NATIVE`. +NOTE: If your application runs https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/cloud/CloudPlatform.html#enum-constant-summary[in a supported Cloud Platform], the configprop:server.forward-headers-strategy[] property defaults to `NATIVE`. In all other instances, it defaults to `NONE`. From 73b1836a00468ddc13323ca5e16e3894d154f80b Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 18 Apr 2024 12:16:05 -0700 Subject: [PATCH 2/2] Polish 'Fix forward-headers-strategy documentation regarding cloud defaults' See gh-40054 --- .../src/docs/antora/modules/how-to/pages/webserver.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc index d3426203ff0..79cd6e58bef 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc @@ -465,7 +465,7 @@ You can use them in your application by setting configprop:server.forward-header TIP: If you are using Tomcat and terminating SSL at the proxy, configprop:server.tomcat.redirect-context-root[] should be set to `false`. This allows the `X-Forwarded-Proto` header to be honored before any redirects are performed. -NOTE: If your application runs https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/cloud/CloudPlatform.html#enum-constant-summary[in a supported Cloud Platform], the configprop:server.forward-headers-strategy[] property defaults to `NATIVE`. +NOTE: If your application runs xref:api:java/org/springframework/boot/cloud/CloudPlatform.html#enum-constant-summary[in a supported Cloud Platform], the configprop:server.forward-headers-strategy[] property defaults to `NATIVE`. In all other instances, it defaults to `NONE`.