set up configuration property
This commit is contained in:
31
README.md
31
README.md
@@ -4,17 +4,18 @@ 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 |
|
||||||
| server.ssl.key-store | * | HTTP Keystore |
|
| server.ssl.key-store | * | HTTP Keystore |
|
||||||
| server.ssl.key-store-type | * | HTTP Cert Type |
|
| server.ssl.key-store-type | * | HTTP Cert Type |
|
||||||
| server.ssl.key-store-password | ** | HTTP Cert Pass |
|
| server.ssl.key-store-password | ** | HTTP Cert Pass |
|
||||||
| 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.
|
||||||
|
|
||||||
@@ -27,8 +28,8 @@ Run `release.sh` script from `master` branch.
|
|||||||
### Developer Keystore
|
### Developer Keystore
|
||||||
|
|
||||||
1. Open `hosts` file:
|
1. Open `hosts` file:
|
||||||
* On Unix-like systems (Linux, macOS), this directory is typically `/etc/hosts`.
|
* On Unix-like systems (Linux, macOS), this directory is typically `/etc/hosts`.
|
||||||
* On Windows, this directory is typically `%SystemRoot%\System32\drivers\etc\hosts`.
|
* On Windows, this directory is typically `%SystemRoot%\System32\drivers\etc\hosts`.
|
||||||
|
|
||||||
2. Add the following lines to the `hosts` file:
|
2. Add the following lines to the `hosts` file:
|
||||||
```text
|
```text
|
||||||
@@ -57,8 +58,8 @@ Here's how you can do it:
|
|||||||
|
|
||||||
1. Open or create the `gradle.properties` file in your Gradle user home directory:
|
1. Open or create the `gradle.properties` file in your Gradle user home directory:
|
||||||
|
|
||||||
- On Unix-like systems (Linux, macOS), this directory is typically `~/.gradle/`.
|
- On Unix-like systems (Linux, macOS), this directory is typically `~/.gradle/`.
|
||||||
- On Windows, this directory is typically `C:\Users\<YourUsername>\.gradle\`.
|
- On Windows, this directory is typically `C:\Users\<YourUsername>\.gradle\`.
|
||||||
|
|
||||||
2. Add the following lines to the `gradle.properties` file:
|
2. Add the following lines to the `gradle.properties` file:
|
||||||
```properties
|
```properties
|
||||||
|
|||||||
@@ -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."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 ###
|
||||||
|
|||||||
Reference in New Issue
Block a user