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/container-apps/java-spring-cloud-config-server-usage.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,25 +56,25 @@ The following table lists the different configuration values available.
56
56
57
57
`spring.cloud.config.server.git`
58
58
59
-
| Name | Description |
60
-
|--|--|
61
-
|`uri` <br/>`repos.{repoName}.uri`| URI of remote repository. |
62
-
|`username` <br/>`repos.{repoName}.username`| Username for authentication with remote repository. |
63
-
|`password` <br/>`repos.{repoName}.password`| Password for authentication with remote repository. |
64
-
|`search-paths` <br/>`repos.{repoName}.search-paths`| Search paths to use within local working copy. By default searches only the root. |
65
-
|`force-pull` <br/>`repos.{repoName}.force-pull`| Flag to indicate that the repository should force pull. If true discard any local changes and take from remote repository. |
66
-
|`default-label` <br/>`repos.{repoName}.default-label`| The default label used for Git is `main`. If you don't set `default-label` and a branch named `main` doesn't exist, the config server will by default also try to check out a branch named `master`. If you would like to disable the fallback branch behavior you can set `tryMasterBranch` to `false`. |
67
-
|`try-master-branch` <br/>`repos.{repoName}.try-master-branch`| The config server by default tries to check out a branch named `master`. |`true`|
68
-
|`skip-ssl-validation` <br/>`repos.{repoName}.skip-ssl-validation`| The configuration server’s validation of the Git server’s SSL certificate can be disabled by setting the `git.skipSslValidation` property to `true`. |
69
-
|`clone-on-start` <br/>`repos.{repoName}.clone-on-start`| Flag to indicate that the repository should be cloned on startup (not on demand). Generally leads to slower startup but faster first query. |
70
-
|`timeout` <br/>`repos.{repoName}.timeout`| Timeout (in seconds) for obtaining HTTP or SSH connection (if applicable). Default 5 seconds. |
71
-
|`refresh-rate` <br/>`repos.{repoName}.refresh-rate`| How often the config server fetches updated configuration data from your Git backend. |
72
-
|`private-key` <br/>`repos.{repoName}.private-key`| Valid SSH private key. Must be set if `ignore-local-ssh-settings` is `true` and Git URI is SSH format. |
73
-
|`host-key` <br/>`repos.{repoName}.host-key`| Valid SSH host key. Must be set if `host-key-algorithm` is also set. |
74
-
|`host-key-algorithm`<br/>`repos.{repoName}.host-key-algorithm`| One of `ssh-dss`, `ssh-rsa`, `ssh-ed25519`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Must be set if `host-key` is also set. |
75
-
|`strict-host-key-checking` <br/>`repos.{repoName}.strict-host-key-checking`|`true` or `false`. If `false`, ignore errors with host key. |
76
-
|`repos.{repoName}`| URI of remote repository. |
77
-
|`repos.{repoName}.pattern`| The pattern format is a comma-separated list of {application}/{profile} names with wildcards. If {application}/{profile} doesn't match any of the patterns, it uses the default URI defined under. |
59
+
| Name |Property path |Description |
60
+
|---|---|---|
61
+
|URI |`repos.{repoName}.uri`| URI of remote repository. |
62
+
|Username |`repos.{repoName}.username`| Username for authentication with remote repository. |
63
+
|Password |`repos.{repoName}.password`| Password for authentication with remote repository. |
64
+
|Search paths|`repos.{repoName}.search-paths`| Search paths to use within local working copy. By default searches only the root. |
65
+
|Force pull|`repos.{repoName}.force-pull`| Flag to indicate that the repository should force pull. If true discard any local changes and take from remote repository. |
66
+
|Default label|`repos.{repoName}.default-label`| The default label used for Git is `main`. If you don't set `default-label` and a branch named `main` doesn't exist, the config server will by default also try to check out a branch named `master`. If you would like to disable the fallback branch behavior you can set `tryMasterBranch` to `false`. |
67
+
|Try masterbranch|`repos.{repoName}.try-master-branch`| The config server by default tries to check out a branch named `master`. |`true`|
68
+
|Skip SSL validation|`repos.{repoName}.skip-ssl-validation`| The configuration server’s validation of the Git server’s SSL certificate can be disabled by setting the `git.skipSslValidation` property to `true`. |
69
+
|Clone-on-start|`repos.{repoName}.clone-on-start`| Flag to indicate that the repository should be cloned on startup (not on demand). Generally leads to slower startup but faster first query. |
70
+
|Timeout |`repos.{repoName}.timeout`| Timeout (in seconds) for obtaining HTTP or SSH connection (if applicable). Default 5 seconds. |
71
+
|Refresh rate|`repos.{repoName}.refresh-rate`| How often the config server fetches updated configuration data from your Git backend. |
72
+
|Private key|`repos.{repoName}.private-key`| Valid SSH private key. Must be set if `ignore-local-ssh-settings` is `true` and Git URI is SSH format. |
73
+
|Host key|`repos.{repoName}.host-key`| Valid SSH host key. Must be set if `host-key-algorithm` is also set. |
74
+
|Host keyalgorithm` |`repos.{repoName}.host-key-algorithm`| One of `ssh-dss`, `ssh-rsa`, `ssh-ed25519`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Must be set if `host-key` is also set. |
75
+
|Strict hostkeychecking|`repos.{repoName}.strict-host-key-checking`|`true` or `false`. If `false`, ignore errors with host key. |
76
+
|Repo location |`repos.{repoName}`| URI of remote repository. |
77
+
|Repo name patterns |`repos.{repoName}.pattern`| The pattern format is a comma-separated list of {application}/{profile} names with wildcards. If {application}/{profile} doesn't match any of the patterns, it uses the default URI defined under. |
78
78
79
79
### Common configurations
80
80
@@ -87,6 +87,7 @@ The following table lists the different configuration values available.
87
87
- Any other configurations under logging.* namespace should be forbidden, for example, writing log files by using `logging.file` should be forbidden.
88
88
89
89
-**spring.cloud.config.server.overrides**
90
+
90
91
- Extra map for a property source to be sent to all clients unconditionally.
0 commit comments