Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrate text box

For an explanation on Spring Cloud Config see http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html 

The Blueriq Runtime uses Spring Cloud Config to be able to load properties from a remote configuration server.

...

Code Block
spring.profiles.active=native 
spring.cloud.config.server.native.searchLocations=${spring.config.location}
spring.cloud.config.server.bootstrap=true

By specifying specifying the

Include Page
_ConfigLocation
_ConfigLocation
 property, the location from where property files are read may be changed. At this location an
Include Page
_PropertiesFileJava
_PropertiesFileJava
 may be placed with properties to configure the runtime.

Warning

Properties supplied to the runtime through the config server take precedence over all other property sources. This may be changed changed by setting the one of the following properties:

  • spring.cloud.config.allowOverride=[true|false] (false for lowest priority)
  • spring.cloud.config.overrideNone=[true|false] (true for highest priority)
  • spring.cloud.config.overrideSystemProperties=[true|false] (true for higher priority than system properties, false for lower priority than system properties)

For any of these properties to have effect, they must be specified in a property file hosted by the config server. For example in

Include Page
_PropertiesFileJava
_PropertiesFileJava
in the directory specified by spring.cloud.config.server.native.searchLocations property or in the configured git repository if applicable.

See also http://cloud.spring.io/spring-cloud-static/spring-cloud.html#overriding-bootstrap-properties for more information

...

The property files will either come from the file-system or use GIT.

 

Code Block
titlebootstrap.properties
encrypt.failOnError=false
encrypt.key=IGotTheKey
encrypt.key-store.secret=IGotTheSecret
spring.cloud.config.server.bootstrap=true (*)

...

Code Block
titlebootstrap.properties - extended for using the file-system
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations

 

Code Block
titlebootstrap.properties - extended for using GIT - basic authentication
spring.cloud.config.server.git.uri=https://git.blueriq.com/config-repo.git
spring.cloud.config.server.git.basedir=target/config
spring.cloud.config.server.git.username=<git_username>
spring.cloud.config.server.git.password=<git_password>

...

 * Username and password that will be used for the client to connect to this server.

Info
UI Text Box
typenote

Currently static resources are not managed by the spring cloud config server (for example frontend sources and exports). This may change in a future release.

Further reading

Reading properties from file system

Reading properties from GIT

...