You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/spring-cloud/how-to-config-server.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ All configurable properties used to set up private Git repository with basic aut
102
102
> Many `Git` repository servers support the use of tokens rather than passwords for HTTP Basic Authentication. Some repositories allow tokens to persist indefinitely. However, some Git repository servers, including Azure DevOps Server, force tokens to expire in a few hours. Repositories that cause tokens to expire should not use token-based authentication with Azure Spring Cloud.
103
103
> Github has removed support for password authentication, so you'll need to use a personal access token instead of password authentication for Github. For more information, see [Token authentication](https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/).
104
104
105
-
### Git repositories with pattern
105
+
### Git additional repositories
106
106
107
107
All configurable properties used to set up Git repositories with pattern are listed below.
108
108
@@ -124,6 +124,16 @@ All configurable properties used to set up Git repositories with pattern are lis
124
124
|`repos."host-key-algorithm"`| No | The host key algorithm, should be *ssh-dss*, *ssh-rsa*, *ecdsa-sha2-nistp256*, *ecdsa-sha2-nistp384*, or *ecdsa-sha2-nistp521*. *Required* only if `host-key` exists. |
125
125
|`repos."strict-host-key-checking"`| No | Indicates whether the Config Server instance will fail to start when leveraging the private `host-key`. Should be *true* (default value) or *false*. |
126
126
127
+
The following table shows some examples for the **Additional repositories** section. For more information, see [Pattern Matching and Multiple Repositories](https://cloud.spring.io/spring-cloud-config/reference/html/#_pattern_matching_and_multiple_repositories) in the Spring documentation.
|*test-config-server-app-0/\**| The pattern and repository URI will match a Spring boot application named `test-config-server-app-0` with any profile. |
132
+
|*test-config-server-app-1/dev*| The pattern and repository URI will match a Spring boot application named `test-config-server-app-1` with dev profile. |
133
+
|*test-config-server-app-2/prod*| The pattern and repository URI will match a Spring boot application named `test-config-server-app-2` with prod profile. |
134
+
135
+
:::image type="content" source="media/spring-cloud-tutorial-config-server/additional-repositories.png" lightbox="media/spring-cloud-tutorial-config-server/additional-repositories.png" alt-text="Azure portal screenshot showing the Config Server page with the Patterns column of the 'Additional repositories' table highlighted":::
136
+
127
137
## Attach your Config Server repository to Azure Spring Cloud
128
138
129
139
Now that your configuration files are saved in a repository, you need to connect Azure Spring Cloud to it.
@@ -170,9 +180,9 @@ Now that your configuration files are saved in a repository, you need to connect
If you want to use an optional **Pattern repository** to configure your service, specify the **URI** and **Authentication** the same way as the **Default repository**. Be sure to include a **Name** for your pattern, and then select **Apply** to attach it to your instance.
185
+
If you want to use an optional **Additional repositories** to configure your service, specify the **URI** and **Authentication** the same way as the **Default repository**. Be sure to include a **Name** for your pattern, and then select **Apply** to attach it to your instance.
0 commit comments