Commit Graph

37 Commits

Author SHA1 Message Date
Dave Syer
4ae639c351 Extra docs for embeddable config server
Fixes gh-100
2015-03-11 10:32:02 +00:00
Dave Syer
bcef73bc98 Add encrypt.keyStore.secret property
So that the keystore and the key can have independent secrets
(the "secret" is the key, and the "password" is the store).

Fixes gh-98
2015-03-09 22:15:41 +00:00
Dave Syer
742cb478ba Add bintray properties 2015-03-05 16:28:10 +00:00
Dave Syer
d4553f6a57 Update to next snapshot 2015-03-03 14:56:26 +00:00
Dave Syer
fc82c93175 Add explicit ref to serviceId for disovery 2015-02-23 15:40:10 +00:00
Dave Syer
346e5746c7 Fix docs for native profile search locations
It's actually `spring.cloud.config.server.native.searchLocations`.

Fixes gh-89
2015-02-23 10:20:25 +00:00
Dave Syer
fc4865964b Fix multi-git samples in docs 2015-02-20 16:20:43 +00:00
Dave Syer
e0e5d25c31 Add detail about using SSH for git
JGit just uses normal .ssh configuration so giving it
a URI in the right form should be enough. Added a short
paragraph on that in the guide.

See gh-55
2015-02-16 09:17:25 +00:00
Dave Syer
8b447dec5a Clarify requirements for client-side encryption
See gh-84
2015-02-13 14:50:56 +00:00
Dave Syer
e28b137fb0 Clarify how to set basic auth credentials in config
See gh-55
2015-02-12 10:31:02 +00:00
Dave Syer
897ad1face Instead of using Map everywhere it's neater to use a strongly typed
object. This reuses JGitEnvironmentRepository, since it shares
most of the same properties. The format of the repos config
changes - now it is a Map not a List and the key is used as a "name"
to provide a default pattern and a location in the basedir.

Example config:

    spring:
      application:
        name: configserver
      cloud:
        config:
          server:
            git:
              uri: https://github.com/spring-cloud-samples/config-repo
              repos:
                iceycake: https://github.com/iceycake/config-repo
                project1:
                  patterns: project1-*,*-project1
                  uri: https://github.com/spring-cloud-samples/config-repo-1
2015-02-12 10:20:16 +00:00
Andy Chan
e05e876f8f Optional support for multiple Git repos
This implementation adds multiple git repositories support to Spring Cloud Config Server.
By giving the following properties file:

info:
  component: Config Server
spring:
  application:
    name: configserver
  jmx:
    default_domain: cloud.config.server
  cloud:
    config:
      server:
        git:
          uri: https://github.com/spring-cloud-samples/config-repo
          repos:
            - patterns: iceycake-*
              uri: https://github.com/iceycake/config-repo
            - patterns: project1-*,*-project1
              uri: https://github.com/spring-cloud-samples/config-repo-1
with uri:

  /{application}/{profile}/{label}

where

spring.cloud.config.server.git.uri is the default git repository
spring.cloud.config.server.repos is a mapping between a git repository and
a string pattern that matches the {application} string in the endpoint.

Fixes gh-82, fixes gh-58
2015-02-10 11:43:28 +00:00
Dave Syer
a0b9fc6ced Update docs to show encrypt key is mandatory 2015-02-05 10:08:26 +01:00
Dave Syer
fecc7c8539 Use local file:/... repository in place instead of cloning
Since JGit cannot use the "local" protocol (only git, ssh and https) we can't
use file:/... repositories in the same way as the other protocols. Formerly
we would copy the whole directory and use the copy as a local cache. But then
users are confused when they commit changes to the "remote" and they don't
show up in the server. It seems less confusing to simply use the local
repository as the basedir (although it does mean that ssh: should be used
if you are scaling up the config server).

Fixes gh-63
2015-01-19 15:05:21 +00:00
Dave Syer
ecc65dd087 Clarify EnvironmentRepository contract 2015-01-06 09:18:40 +00:00
Dave Syer
b29b492817 Add label/ prefix to properties files in the "native" profile
This allows user s to separate their native resources by label, e.g.
/config/master/*.properties, /config/dev/*.properties etc.
2014-12-18 16:49:52 +00:00
Dave Syer
7a7550735e Change docs path in README 2014-12-11 15:41:36 +00:00
Spencer Gibb
954adc21c2 document failFast option
fixes gh-49
2014-12-05 12:31:16 -07:00
Dave Syer
2caf87f92e Revert some @Ignores after bugfixes in Spring
Also lifts the restriction on @RefreshScope and @Configuration
(since that was imposed by a bug).

Fixes gh-43
2014-12-03 17:19:05 +00:00
Dave Syer
a83daa0ef5 starters->starter-parent 2014-11-26 14:05:57 +00:00
Dave Syer
776ec68280 Add contributing section to README 2014-11-17 10:29:14 +00:00
Tomasz Nurkiewicz
4f9b044453 Minor typo 2014-11-13 13:03:50 +01:00
Dave Syer
9d55ef84d0 Extract config server properties to Java bean
ConfigServerProperties is now used to store global properties
for the config server (like the path prefix and bootstrap flag)
under spring.cloud.config.server.* so git specific ones have
been pushed down to spring.cloud.config.server.git.* (similarly
for git->native).

At the same time introduce spring.cloud.config.server.defaultLabel
for the deafult git label (defaults to "master").

Fixes gh-28
2014-11-10 08:46:02 +00:00
Dave Syer
04b6cd0f13 Add some docs for config server 2014-11-08 19:28:46 +00:00
Dave Syer
54434bd71e Update README with "Building" instructions
Fixes gh-13
2014-10-31 15:41:46 +00:00
Dave Syer
ccf4da59c2 More detail on context hierarchies 2014-10-31 08:54:55 +00:00
Dave Syer
9efae007fa Add Environment to ProeprtySourceLocator.locate()
In this way each contexet in a hierarchy can in principle have a different
set of property sources
2014-10-30 11:43:00 +00:00
Dave Syer
84962cefca Add spring.cloud.config.server.prefix
Fixes gh-23
2014-10-29 15:13:12 +00:00
Dave Syer
ec0108f867 Clarify role of spring.application.name and context hierarchies
Also allow override of bootstrap properties location using
spring.cloud.config.*.

Fixes gh-22
2014-10-29 14:59:48 +00:00
Dave Syer
d564e8dda0 Add docs for Eureka first config bootstrap 2014-10-26 15:47:33 +00:00
Spencer Gibb
0b6be00fee Merge pull request #11 from boostrack/patch-1
Update spring-cloud-config.adoc
2014-10-17 17:21:36 -07:00
Dave Syer
f5d8c4b65c Simplify README generator 2014-10-14 13:05:01 +01:00
Dave Syer
3f05eddc42 Expunge .platform. from config project
Fixes gh-12
2014-10-13 14:16:47 +01:00
Dave Syer
0800d33a75 Update bootstraps for cloud foundry 2014-10-13 14:02:38 +01:00
Dave Syer
5d15afabe5 Add HTTP Basic security 2014-10-10 15:57:50 +01:00
boostrack
a249e3e8a2 Update spring-cloud-config.adoc
fix typo
2014-10-08 16:18:18 +02:00
Dave Syer
548157ef97 Move docs to submodule for multi-module projects 2014-10-06 15:02:01 +01:00