diff --git a/multi/multi__quick_start.html b/multi/multi__quick_start.html index 6fc3a9f0..717aae13 100644 --- a/multi/multi__quick_start.html +++ b/multi/multi__quick_start.html @@ -73,7 +73,7 @@ public class Application { } }
When this HTTP server runs, it picks up the external configuration from the default local config server (if it is running) on port 8888.
-To modify the startup behavior, you can change the location of the config server by using bootstrap.properties (similar to application.properties but for the bootstrap phase of an application context), as shown in the following example:
spring.cloud.config.uri: http://myconfigserver.com
The bootstrap properties show up in the /env endpoint as a high-priority property source, as shown in the following example.
$ curl localhost:8080/env +To modify the startup behavior, you can change the location of the config server by usingbootstrap.properties(similar toapplication.propertiesbut for the bootstrap phase of an application context), as shown in the following example:spring.cloud.config.uri: http://myconfigserver.comBy default, if no application name is set,
applicationwill be used as the default. To modify the name, the following property can be added to thebootstrap.propertiesfile:spring.application.name: myapp
Note When setting the property
${spring.application.name}do not prefix your app name with the reserved wordapplication-to prevent issues resolving the correct property source.The bootstrap properties show up in the
/envendpoint as a high-priority property source, as shown in the following example.$ curl localhost:8080/env { "profiles":[], "configService:https://github.com/spring-cloud-samples/config-repo/bar.properties":{"foo":"bar"}, diff --git a/multi/multi__spring_cloud_config_client.html b/multi/multi__spring_cloud_config_client.html index 75a0230d..3fbccbe3 100644 --- a/multi/multi__spring_cloud_config_client.html +++ b/multi/multi__spring_cloud_config_client.html @@ -26,7 +26,7 @@ First, you need to setspring.cloud.config.fail-fast=true< Then you need to addspring-retryandspring-boot-starter-aopto your classpath. The default behavior is to retry six times with an initial backoff interval of 1000ms and an exponential multiplier of 1.1 for subsequent backoffs. You can configure these properties (and others) by setting thespring.cloud.config.retry.*configuration properties.
Tip To take full control of the retry behavior, add a
@Beanof typeRetryOperationsInterceptorwith an ID ofconfigServerRetryInterceptor. -Spring Retry has aRetryInterceptorBuilderthat supports creating one.The Config Service serves property sources from
/{name}/{profile}/{label}, where the default bindings in the client app are as follows:
- "name" =
${spring.application.name}- "profile" =
${spring.profiles.active}(actuallyEnvironment.getActiveProfiles())- "label" = "master"
You can override all of them by setting
spring.cloud.config.*(where*isname,profileorlabel). +Spring Retry has aRetryInterceptorBuilderthat supports creating one.The Config Service serves property sources from
/{name}/{profile}/{label}, where the default bindings in the client app are as follows:
- "name" =
${spring.application.name}- "profile" =
${spring.profiles.active}(actuallyEnvironment.getActiveProfiles())- "label" = "master"
Note When setting the property
${spring.application.name}do not prefix your app name with the reserved wordapplication-to prevent issues resolving the correct property source.You can override all of them by setting
spring.cloud.config.*(where*isname,profileorlabel). Thelabelis useful for rolling back to previous versions of configuration. With the default Config Server implementation, it can be a git label, branch name, or commit ID. Label can also be provided as a comma-separated list. diff --git a/multi/multi__spring_cloud_config_server.html b/multi/multi__spring_cloud_config_server.html index d1ed8f1f..a4bef3ab 100644 --- a/multi/multi__spring_cloud_config_server.html +++ b/multi/multi__spring_cloud_config_server.html @@ -195,7 +195,7 @@ In order to activate property-based SSH configuration, the69pcVH/4rmLbXdcmNYGm6iu+MlPQk4BUZknHSmVHIFdJ0EPupVaQ8RHT - -----END RSA PRIVATE KEY-----The following table describes the SSH configuration properties.
Table 2.1. SSH Configuration Properties
Property Name Remarks ignoreLocalSshSettings
If
true, use property-based instead of file-based SSH config. Must be set at asspring.cloud.config.server.git.ignoreLocalSshSettings, not inside a repository definition.privateKey
Valid SSH private key. Must be set if
ignoreLocalSshSettingsis true and Git URI is SSH format.hostKey
Valid SSH host key. Must be set if
hostKeyAlgorithmis also set.hostKeyAlgorithm
One of
ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, or ecdsa-sha2-nistp521. Must be set ifhostKeyis also set.strictHostKeyChecking
trueorfalse. If false, ignore errors with host key.knownHostsFile
Location of custom
.known_hostsfile.preferredAuthentications
Override server authentication method order. This should allow for evading login prompts if server has keyboard-interactive authentication before the
publickeymethod.Spring Cloud Config Server also supports a search path with placeholders for the
{application}and{profile}(and{label}if + -----END RSA PRIVATE KEY-----The following table describes the SSH configuration properties.
Table 2.1. SSH Configuration Properties
Property Name Remarks ignoreLocalSshSettings
If
true, use property-based instead of file-based SSH config. Must be set at asspring.cloud.config.server.git.ignoreLocalSshSettings, not inside a repository definition.privateKey
Valid SSH private key. Must be set if
ignoreLocalSshSettingsis true and Git URI is SSH format.hostKey
Valid SSH host key. Must be set if
hostKeyAlgorithmis also set.hostKeyAlgorithm
One of
ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, or ecdsa-sha2-nistp521. Must be set ifhostKeyis also set.strictHostKeyChecking
trueorfalse. If false, ignore errors with host key.knownHostsFile
Location of custom
.known_hostsfile.preferredAuthentications
Override server authentication method order. This should allow for evading login prompts if server has keyboard-interactive authentication before the
publickeymethod.Spring Cloud Config Server also supports a search path with placeholders for the
{application}and{profile}(and{label}if you need it), as shown in the following example:spring: cloud: config: @@ -292,7 +292,7 @@ secret/myApp secret/application,dev secret/applicationProperties written to
secret/applicationare available to all applications using the Config Server. An application with the name,myApp, would have any properties written tosecret/myAppandsecret/applicationavailable to it. -WhenmyApphas thedevprofile enabled, properties written to all of the above paths would be available to it, with properties in the first path in the list taking priority over the others.The configuration server can access a Git or Vault backend through an HTTP or HTTPS proxy. This behavior is controlled for either Git or Vault by settings under
proxy.httpandproxy.https. These settings are per repository, so if you are using a composite environment repository you must configure proxy settings for each backend in the composite individually. If using a network which requires separate proxy servers for HTTP and HTTPS URLs, you can configure both the HTTP and the HTTPS proxy settings for a single backend.The following table describes the proxy configuration properties for both HTTP and HTTPS proxies. All of these properties must be prefixed by
proxy.httporproxy.https.Table 2.2. Proxy Configuration Properties
Property Name Remarks host
The host of the proxy.
port
The port with which to access the proxy.
nonProxyHosts
Any hosts which the configuration server should access outside the proxy. If values are provided for both
proxy.http.nonProxyHostsandproxy.https.nonProxyHosts, theproxy.httpvalue will be used.username
The username with which to authenticate to the proxy. If values are provided for both
proxy.http.usernameandproxy.https.username, theproxy.httpvalue will be used.password
The password with which to authenticate to the proxy. If values are provided for both
proxy.http.passwordandproxy.https.password, theproxy.httpvalue will be used.The following configuration uses an HTTPS proxy to access a Git repository.
spring: +WhenmyApphas thedevprofile enabled, properties written to all of the above paths would be available to it, with properties in the first path in the list taking priority over the others.The configuration server can access a Git or Vault backend through an HTTP or HTTPS proxy. This behavior is controlled for either Git or Vault by settings under
proxy.httpandproxy.https. These settings are per repository, so if you are using a composite environment repository you must configure proxy settings for each backend in the composite individually. If using a network which requires separate proxy servers for HTTP and HTTPS URLs, you can configure both the HTTP and the HTTPS proxy settings for a single backend.The following table describes the proxy configuration properties for both HTTP and HTTPS proxies. All of these properties must be prefixed by
proxy.httporproxy.https.Table 2.2. Proxy Configuration Properties
Property Name Remarks host
The host of the proxy.
port
The port with which to access the proxy.
nonProxyHosts
Any hosts which the configuration server should access outside the proxy. If values are provided for both
proxy.http.nonProxyHostsandproxy.https.nonProxyHosts, theproxy.httpvalue will be used.username
The username with which to authenticate to the proxy. If values are provided for both
proxy.http.usernameandproxy.https.username, theproxy.httpvalue will be used.password
The password with which to authenticate to the proxy. If values are provided for both
proxy.http.passwordandproxy.https.password, theproxy.httpvalue will be used.The following configuration uses an HTTPS proxy to access a Git repository.
spring: profiles: active: git cloud: diff --git a/single/spring-cloud-config.html b/single/spring-cloud-config.html index 94cc8dc2..c39e8a95 100644 --- a/single/spring-cloud-config.html +++ b/single/spring-cloud-config.html @@ -77,7 +77,7 @@ public class Application { } }When this HTTP server runs, it picks up the external configuration from the default local config server (if it is running) on port 8888. -To modify the startup behavior, you can change the location of the config server by using
bootstrap.properties(similar toapplication.propertiesbut for the bootstrap phase of an application context), as shown in the following example:spring.cloud.config.uri: http://myconfigserver.comThe bootstrap properties show up in the
/envendpoint as a high-priority property source, as shown in the following example.$ curl localhost:8080/env +To modify the startup behavior, you can change the location of the config server by usingbootstrap.properties(similar toapplication.propertiesbut for the bootstrap phase of an application context), as shown in the following example:spring.cloud.config.uri: http://myconfigserver.comBy default, if no application name is set,
applicationwill be used as the default. To modify the name, the following property can be added to thebootstrap.propertiesfile:spring.application.name: myapp
Note When setting the property
${spring.application.name}do not prefix your app name with the reserved wordapplication-to prevent issues resolving the correct property source.The bootstrap properties show up in the
/envendpoint as a high-priority property source, as shown in the following example.$ curl localhost:8080/env { "profiles":[], "configService:https://github.com/spring-cloud-samples/config-repo/bar.properties":{"foo":"bar"}, @@ -279,7 +279,7 @@ In order to activate property-based SSH configuration, the69pcVH/4rmLbXdcmNYGm6iu+MlPQk4BUZknHSmVHIFdJ0EPupVaQ8RHT - -----END RSA PRIVATE KEY-----The following table describes the SSH configuration properties.
Table 2.1. SSH Configuration Properties
Property Name Remarks ignoreLocalSshSettings
If
true, use property-based instead of file-based SSH config. Must be set at asspring.cloud.config.server.git.ignoreLocalSshSettings, not inside a repository definition.privateKey
Valid SSH private key. Must be set if
ignoreLocalSshSettingsis true and Git URI is SSH format.hostKey
Valid SSH host key. Must be set if
hostKeyAlgorithmis also set.hostKeyAlgorithm
One of
ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, or ecdsa-sha2-nistp521. Must be set ifhostKeyis also set.strictHostKeyChecking
trueorfalse. If false, ignore errors with host key.knownHostsFile
Location of custom
.known_hostsfile.preferredAuthentications
Override server authentication method order. This should allow for evading login prompts if server has keyboard-interactive authentication before the
publickeymethod.Spring Cloud Config Server also supports a search path with placeholders for the
{application}and{profile}(and{label}if + -----END RSA PRIVATE KEY-----The following table describes the SSH configuration properties.
Table 2.1. SSH Configuration Properties
Property Name Remarks ignoreLocalSshSettings
If
true, use property-based instead of file-based SSH config. Must be set at asspring.cloud.config.server.git.ignoreLocalSshSettings, not inside a repository definition.privateKey
Valid SSH private key. Must be set if
ignoreLocalSshSettingsis true and Git URI is SSH format.hostKey
Valid SSH host key. Must be set if
hostKeyAlgorithmis also set.hostKeyAlgorithm
One of
ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, or ecdsa-sha2-nistp521. Must be set ifhostKeyis also set.strictHostKeyChecking
trueorfalse. If false, ignore errors with host key.knownHostsFile
Location of custom
.known_hostsfile.preferredAuthentications
Override server authentication method order. This should allow for evading login prompts if server has keyboard-interactive authentication before the
publickeymethod.Spring Cloud Config Server also supports a search path with placeholders for the
{application}and{profile}(and{label}if you need it), as shown in the following example:spring: cloud: config: @@ -376,7 +376,7 @@ secret/myApp secret/application,dev secret/applicationProperties written to
secret/applicationare available to all applications using the Config Server. An application with the name,myApp, would have any properties written tosecret/myAppandsecret/applicationavailable to it. -WhenmyApphas thedevprofile enabled, properties written to all of the above paths would be available to it, with properties in the first path in the list taking priority over the others.The configuration server can access a Git or Vault backend through an HTTP or HTTPS proxy. This behavior is controlled for either Git or Vault by settings under
proxy.httpandproxy.https. These settings are per repository, so if you are using a composite environment repository you must configure proxy settings for each backend in the composite individually. If using a network which requires separate proxy servers for HTTP and HTTPS URLs, you can configure both the HTTP and the HTTPS proxy settings for a single backend.The following table describes the proxy configuration properties for both HTTP and HTTPS proxies. All of these properties must be prefixed by
proxy.httporproxy.https.Table 2.2. Proxy Configuration Properties
Property Name Remarks host
The host of the proxy.
port
The port with which to access the proxy.
nonProxyHosts
Any hosts which the configuration server should access outside the proxy. If values are provided for both
proxy.http.nonProxyHostsandproxy.https.nonProxyHosts, theproxy.httpvalue will be used.username
The username with which to authenticate to the proxy. If values are provided for both
proxy.http.usernameandproxy.https.username, theproxy.httpvalue will be used.password
The password with which to authenticate to the proxy. If values are provided for both
proxy.http.passwordandproxy.https.password, theproxy.httpvalue will be used.The following configuration uses an HTTPS proxy to access a Git repository.
spring: +WhenmyApphas thedevprofile enabled, properties written to all of the above paths would be available to it, with properties in the first path in the list taking priority over the others.The configuration server can access a Git or Vault backend through an HTTP or HTTPS proxy. This behavior is controlled for either Git or Vault by settings under
proxy.httpandproxy.https. These settings are per repository, so if you are using a composite environment repository you must configure proxy settings for each backend in the composite individually. If using a network which requires separate proxy servers for HTTP and HTTPS URLs, you can configure both the HTTP and the HTTPS proxy settings for a single backend.The following table describes the proxy configuration properties for both HTTP and HTTPS proxies. All of these properties must be prefixed by
proxy.httporproxy.https.Table 2.2. Proxy Configuration Properties
Property Name Remarks host
The host of the proxy.
port
The port with which to access the proxy.
nonProxyHosts
Any hosts which the configuration server should access outside the proxy. If values are provided for both
proxy.http.nonProxyHostsandproxy.https.nonProxyHosts, theproxy.httpvalue will be used.username
The username with which to authenticate to the proxy. If values are provided for both
proxy.http.usernameandproxy.https.username, theproxy.httpvalue will be used.password
The password with which to authenticate to the proxy. If values are provided for both
proxy.http.passwordandproxy.https.password, theproxy.httpvalue will be used.The following configuration uses an HTTPS proxy to access a Git repository.
spring: profiles: active: git cloud: @@ -586,7 +586,7 @@ First, you need to setspring.cloud.config.fail-fast=true< Then you need to addspring-retryandspring-boot-starter-aopto your classpath. The default behavior is to retry six times with an initial backoff interval of 1000ms and an exponential multiplier of 1.1 for subsequent backoffs. You can configure these properties (and others) by setting thespring.cloud.config.retry.*configuration properties.
Tip To take full control of the retry behavior, add a
@Beanof typeRetryOperationsInterceptorwith an ID ofconfigServerRetryInterceptor. -Spring Retry has aRetryInterceptorBuilderthat supports creating one.The Config Service serves property sources from
/{name}/{profile}/{label}, where the default bindings in the client app are as follows:
- "name" =
${spring.application.name}- "profile" =
${spring.profiles.active}(actuallyEnvironment.getActiveProfiles())- "label" = "master"
You can override all of them by setting
spring.cloud.config.*(where*isname,profileorlabel). +Spring Retry has aRetryInterceptorBuilderthat supports creating one.The Config Service serves property sources from
/{name}/{profile}/{label}, where the default bindings in the client app are as follows:
- "name" =
${spring.application.name}- "profile" =
${spring.profiles.active}(actuallyEnvironment.getActiveProfiles())- "label" = "master"
Note When setting the property
${spring.application.name}do not prefix your app name with the reserved wordapplication-to prevent issues resolving the correct property source.You can override all of them by setting
spring.cloud.config.*(where*isname,profileorlabel). Thelabelis useful for rolling back to previous versions of configuration. With the default Config Server implementation, it can be a git label, branch name, or commit ID. Label can also be provided as a comma-separated list. diff --git a/spring-cloud-config.xml b/spring-cloud-config.xml index c66df37e..10a20814 100644 --- a/spring-cloud-config.xml +++ b/spring-cloud-config.xml @@ -113,6 +113,11 @@ public class Application {When this HTTP server runs, it picks up the external configuration from the default local config server (if it is running) on port 8888. To modify the startup behavior, you can change the location of the config server by using bootstrap.properties (similar toapplication.properties but for the bootstrap phase of an application context), as shown in the following example:spring.cloud.config.uri: http://myconfigserver.com +By default, if no application name is set, +application will be used as the default. To modify the name, the following property can be added to thebootstrap.properties file:spring.application.name: myapp ++ When setting the property +${spring.application.name} do not prefix your app name with the reserved wordapplication- to prevent issues resolving the correct property source.The bootstrap properties show up in the /env endpoint as a high-priority property source, as shown in the following example.$ curl localhost:8080/env { @@ -1231,6 +1236,9 @@ Spring Retry has a RetryInterceptorBuilder that supports crea"label" = "master" ++ When setting the property +${spring.application.name} do not prefix your app name with the reserved wordapplication- to prevent issues resolving the correct property source.You can override all of them by setting spring.cloud.config.* (where* isname ,profile orlabel ). Thelabel is useful for rolling back to previous versions of configuration. With the default Config Server implementation, it can be a git label, branch name, or commit ID.