diff --git a/README.md b/README.md index 47abfcd..9550b9a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Classes and endpoints, to shape and to steer, Devices and sensors, their purpose | server.ssl.key-store-type | * | HTTP Cert Type | | server.ssl.key-store-password | ** | HTTP Cert Pass | | jwt.public-key | * | JWT public key | +| device-registry.url | * | Device Register URL | Required: * can be stored as text, and ** need to be stored as secret. diff --git a/build.gradle.kts b/build.gradle.kts index 3a949fb..347fb19 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,10 +7,12 @@ plugins { } dependencies { + implementation(hlaeja.com.fasterxml.jackson.module.kotlin) implementation(hlaeja.jjwt.api) implementation(hlaeja.kotlin.logging) implementation(hlaeja.kotlin.reflect) implementation(hlaeja.kotlinx.coroutines) + implementation(hlaeja.ltd.hlaeja.library.common.messages) implementation(hlaeja.org.springframework.springboot.actuator.starter) implementation(hlaeja.org.springframework.springboot.webflux.starter) diff --git a/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 706d620..e0e66ef 100644 --- a/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -24,6 +24,11 @@ "name": "jwt.public-key", "type": "java.lang.String", "description": "Jwt public key file." + }, + { + "name": "device-registry.url", + "type": "java.lang.String", + "description": "Url for device registry service." } ] } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ec3fc2e..c22bab6 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -30,6 +30,9 @@ server: key-store-type: PKCS12 key-store-password: password +device-registry: + url: http://localhost:9010 + --- ########################## ### Docker environment ### @@ -47,6 +50,9 @@ server: key-store-type: PKCS12 key-store-password: password +device-registry: + url: http://DeviceRegistry:8080 + --- ############################## ### Production environment ###