From ec1634699c82dac8e9b2d24c7bc8fbfd761f235e Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Thu, 14 Nov 2024 13:05:18 +0100 Subject: [PATCH] set up data property --- README.md | 1 + .../META-INF/additional-spring-configuration-metadata.json | 5 +++++ src/main/resources/application.yml | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 9550b9a..cb6c878 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Classes and endpoints, to shape and to steer, Devices and sensors, their purpose | server.ssl.key-store-password | ** | HTTP Cert Pass | | jwt.public-key | * | JWT public key | | device-registry.url | * | Device Register URL | +| device-data.url | * | Device Data URL | Required: * can be stored as text, and ** need to be stored as secret. 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 e0e66ef..d46199b 100644 --- a/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -29,6 +29,11 @@ "name": "device-registry.url", "type": "java.lang.String", "description": "Url for device registry service." + }, + { + "name": "device-data.url", + "type": "java.lang.String", + "description": "Url for device data service." } ] } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c22bab6..49e2e47 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -33,6 +33,9 @@ server: device-registry: url: http://localhost:9010 +device-data: + url: http://localhost:9020 + --- ########################## ### Docker environment ### @@ -53,6 +56,9 @@ server: device-registry: url: http://DeviceRegistry:8080 +device-data: + url: http://DeviceData:8080 + --- ############################## ### Production environment ###