Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meliorartefacts/service-harness-config

An easy to use extension to the client side of the Spring Cloud Config Server, with support for sending the host name or the environment name to the Spring Cloud Config Server.
https://github.com/meliorartefacts/service-harness-config

cloud-config-server spring-boot spring-client

Last synced: about 2 months ago
JSON representation

An easy to use extension to the client side of the Spring Cloud Config Server, with support for sending the host name or the environment name to the Spring Cloud Config Server.

Awesome Lists containing this project

README

        

# Melior Service Harness :: Config





## Artefact
Get the artefact and the POM file in the *artefact* folder.
```

org.melior
melior-harness-config
2.3

```

## Client
Set the config data location in the application properties to use the Spring Cloud Config Server extended client. If no profile is active, then by default the host name is sent to the Spring Cloud Config Server as the profile.
```
spring.config.import=csx:http://config.server:8888
```

If one or more profiles are active, extend the config data location with a shortcut to send a different value to the Spring Cloud Config Server as the profile. This is equivalent to using the **spring.cloud.config.profile** application property.
```
spring.config.import=csx:http://config.server:8888|some.other.value
```

If one or more profiles are active, extend the config data location to send the host name to the Spring Cloud Config Server as the profile.
```
spring.config.import=csx:http://config.server:8888|${host.name}
```

If the config data location is not extended, and either an **environment.name** system property or an **ENVIRONMENT_NAME** environment variable is set, then the environment name is sent to the Spring Cloud Config Server as the profile.

 
## References
Refer to the [**Melior Service Harness :: Core**](https://github.com/MeliorArtefacts/service-harness-core) module for detail on the Melior logging system and available utilities.