set up configuration property

This commit is contained in:
2024-11-30 18:05:47 +01:00
parent eb76146e95
commit d7577f6cee
3 changed files with 27 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ Classes and endpoints, to shape and to steer, Devices and sensors, their purpose
## Properties for deployment ## Properties for deployment
| name | required | info | | name | required | info |
|-------------------------------|----------|-------------------------| |-------------------------------|----------|--------------------------|
| spring.profiles.active | * | Spring Boot environment | | spring.profiles.active | * | Spring Boot environment |
| server.port | * | HTTP port | | server.port | * | HTTP port |
| server.ssl.enabled | * | HTTP Enable SSL | | server.ssl.enabled | * | HTTP Enable SSL |
@@ -15,6 +15,7 @@ Classes and endpoints, to shape and to steer, Devices and sensors, their purpose
| jwt.public-key | * | JWT public key | | jwt.public-key | * | JWT public key |
| device-registry.url | * | Device Register URL | | device-registry.url | * | Device Register URL |
| device-data.url | * | Device Data URL | | device-data.url | * | Device Data URL |
| device-configuration.url | * | Device Configuration URL |
Required: * can be stored as text, and ** need to be stored as secret. Required: * can be stored as text, and ** need to be stored as secret.

View File

@@ -34,6 +34,11 @@
"name": "device-data.url", "name": "device-data.url",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Url for device data service." "description": "Url for device data service."
},
{
"name": "device-configuration.url",
"type": "java.lang.String",
"description": "Url for device configuration service."
} }
] ]
} }

View File

@@ -36,6 +36,9 @@ device-registry:
device-data: device-data:
url: http://localhost:9020 url: http://localhost:9020
device-configuration:
url: http://localhost:9030
--- ---
########################## ##########################
### Docker environment ### ### Docker environment ###
@@ -59,6 +62,9 @@ device-registry:
device-data: device-data:
url: http://DeviceData:8080 url: http://DeviceData:8080
device-configuration:
url: http://DeviceConfiguration:8080
--- ---
############################## ##############################
### Production environment ### ### Production environment ###