diff --git a/spring-cloud.html b/spring-cloud.html index 0c219e1..0d4cfe8 100644 --- a/spring-cloud.html +++ b/spring-cloud.html @@ -654,6 +654,32 @@ list of properties), and "label" is an optional git label (defaults to map, even if the origin of the values (reflected in the "propertySources" of the "standard" form) has multiple sources.

+
+

Spring Cloud Config Server also supports multiple git repositories:

+
+
+
+
spring:
+  cloud:
+    config:
+	  server:
+	    git:
+	      uri: https://github.com/spring-cloud-samples/config-repo
+	      repos:
+	        - patterns: *pattern
+	          uri: https://github.com/pattern1/config-repo
+	        - patterns: pattern*,*pattern1*
+	          uri: https://github.com/pattern2/config-repo
+	        - patterns: local*
+	          uri: file:/home/configsvc/config-repo
+
+
+
+

In the above example, if {application} does not match to any of the patterns +under "spring.cloud.config.server.git.repos", it will use the default uri +defined under "spring.cloud.config.server.git.uri". Acceptable pattern +format is "xxx", "xxx", or "xxx".

+

Client Side Usage

@@ -864,6 +890,52 @@ working copy as a cache.

This repository implementation maps the {label} parameter of the HTTP resource to a git label (commit id, branch name or tag).

+
+

Spring Cloud Config Server also supports multiple git repositories:

+
+
+
+
spring:
+  cloud:
+    config:
+	  server:
+	    git:
+	      uri: https://github.com/spring-cloud-samples/config-repo
+	      repos:
+	        simple: https://github.com/pattern1/config-repo
+            special:
+              pattern: pattern*,*pattern1*
+	          uri: https://github.com/pattern2/config-repo
+	        local:
+              pattern: local*
+	          uri: file:/home/configsvc/config-repo
+
+
+
+

In the above example, if {application} does not match to any of the +patterns, it will use the default uri defined under +"spring.cloud.config.server.git.uri". For the "simple" repository, the +pattern is "simple" (i.e. it only matches one application). The +pattern format is a comma-separated list of application names with +wildcards.

+
+
+

To use HTTP basic authentication on the remote repository add the +"username" and "password" properties separately (not in the URL), +e.g.

+
+
+
+
spring:
+  cloud:
+    config:
+	  server:
+	    git:
+	      uri: https://github.com/spring-cloud-samples/config-repo
+          username: trolley
+          password: strongpassword
+
+

File System Backend

@@ -3144,7 +3216,7 @@ ProxyAuthenticationProperties for full details.