Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b776186ac | |||
| a583e5d6e3 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
.idea/
|
.idea/
|
||||||
keys/
|
cert/
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
OpenSSL Project is dedicated to providing a simple installation of OpenSSL for Microsoft Windows.
|
OpenSSL Project is dedicated to providing a simple installation of OpenSSL for Microsoft Windows.
|
||||||
[Download](https://slproweb.com/products/Win32OpenSSL.html)
|
[Download](https://slproweb.com/products/Win32OpenSSL.html)
|
||||||
|
|
||||||
Generate an RSA private key, of size 2048, and output it to a file named `identity_private_key.pem` in to `./keys`
|
Generate an RSA private key, of size 2048, and output it to a file named `identity_private_key.pem` in to `./cert`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
openssl genrsa -out identity_private_key.pem 2048
|
openssl genrsa -out identity_private_key.pem 2048
|
||||||
```
|
```
|
||||||
|
|
||||||
Extract the public key from `identity_private_key.pem` from `./keys`, and output it to a file named `identity_public_key.pem` in to `./keys`
|
Extract the public key from `identity_private_key.pem` from `./cert`, and output it to a file named `identity_public_key.pem` in to `./cert`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
openssl rsa -in identity_private_key.pem -pubout -out identity_public_key.pem
|
openssl rsa -in identity_private_key.pem -pubout -out identity_public_key.pem
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Store device information. GitHub [Hlæja Device Data](https://github.com/swordst
|
|||||||
SPRING_R2DBC_URL: r2dbc:postgresql://localhost:5432/device_registry
|
SPRING_R2DBC_URL: r2dbc:postgresql://localhost:5432/device_registry
|
||||||
SPRING_R2DBC_USERBAME: services
|
SPRING_R2DBC_USERBAME: services
|
||||||
SPRING_R2DBC_PASSWORD: password
|
SPRING_R2DBC_PASSWORD: password
|
||||||
JWT_PRIVATE_KEY: keys/private_key.pem
|
JWT_PRIVATE_KEY: cert/private_key.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Volume
|
#### Volume
|
||||||
@@ -54,7 +54,7 @@ This will allow you to mount a local private key `identity_private_key.pem` into
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
volumes:
|
volumes:
|
||||||
- ./keys/identity_private_key.pem:/app/resources/keys/private_key.pem
|
- ./cert/identity_private_key.pem:/app/resources/cert/private_key.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
### Device API
|
### Device API
|
||||||
|
|||||||
20
compose.yml
20
compose.yml
@@ -13,7 +13,7 @@ volumes:
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
device-data:
|
device-data:
|
||||||
image: hlaeja-device-data:0.1.0
|
image: hlaeja-device-data:0.1.1
|
||||||
container_name: DeviceData
|
container_name: DeviceData
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@@ -25,7 +25,7 @@ services:
|
|||||||
- "9020:8080"
|
- "9020:8080"
|
||||||
|
|
||||||
device-registry:
|
device-registry:
|
||||||
image: hlaeja-device-registry:0.1.0
|
image: hlaeja-device-registry:0.2.0
|
||||||
container_name: DeviceRegistry
|
container_name: DeviceRegistry
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@@ -34,12 +34,12 @@ services:
|
|||||||
- develop
|
- develop
|
||||||
ports:
|
ports:
|
||||||
- "9010:8080"
|
- "9010:8080"
|
||||||
# # mount a local `identity_private_key.pem` into the container.
|
# mount a local `identity_private_key.pem` into the container.
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./keys/identity_private_key.pem:/app/resources/keys/private_key.pem
|
- ./cert/identity_private_key.pem:/app/resources/cert/private_key.pem
|
||||||
|
|
||||||
device-api:
|
device-api:
|
||||||
image: hlaeja-device-api:0.1.0
|
image: hlaeja-device-api:0.2.0
|
||||||
container_name: DeviceApi
|
container_name: DeviceApi
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@@ -48,10 +48,10 @@ services:
|
|||||||
- develop
|
- develop
|
||||||
ports:
|
ports:
|
||||||
- "9000:8443"
|
- "9000:8443"
|
||||||
# # mount a local `identity_public_key.pem` into the container.
|
# mount a local `identity_public_key.pem` into the container.
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./keys/identity_public_key.pem:/app/resources/cert/public_key.pem
|
- ./cert/identity_public_key.pem:/app/resources/cert/public_key.pem
|
||||||
# - ./keys/device_api_keystore.p12:/app/resources/cert/keystore.p12
|
- ./cert/device_api_keystore.p12:/app/resources/cert/keystore.p12
|
||||||
|
|
||||||
device-configuration:
|
device-configuration:
|
||||||
image: hlaeja-device-configuration:0.1.0
|
image: hlaeja-device-configuration:0.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user