update application properties

This commit is contained in:
2025-07-31 11:21:29 +02:00
committed by swordsteel
parent 298ce3028c
commit 0072f37939
2 changed files with 31 additions and 17 deletions

View File

@@ -5,18 +5,24 @@ In realms of connectedness, where devices roam free, A nexus of management, harm
## Properties for deployment
| name | required | info |
|----------------------------|:--------:|-------------------------|
| spring.profiles.active | ✓ | Spring Boot environment |
| spring.cache.type | | Cache type (redis) |
| spring.data.redis.host | ✓ | Redis host |
|---------------------------------|:--------:|----------------------------|
| spring.profiles.active | ✗ | Spring Boot environment |
| spring.session.timeout | | Session timeout |
| spring.data.redis.database | | Redis database |
| spring.data.redis.port | | Redis port |
| spring.data.redis.database | ✓ | Redis database |
| spring.data.redis.password | ✗ | Redis password |
| jwt.public-key | ✓ | JWT public key file |
| account-registry.url | ✓ | Account Register URL |
| device-registry.url | ✓ | Device Register URL |
| spring.data.redis.host | ✔ | Redis host |
| spring.data.redis.password | ✱ | Redis password |
| server.error.include-exception | | Exception class on error |
| server.error.include-message | | Exception message on error |
| server.error.include-stacktrace | | stack trace on error |
| jwt.public-key | ✗ | JWT public key file |
| account-registry.url | ✔ | Account Register URL |
| device-registry.url | ✔ | Device Register URL |
*Required: ✓ can be stored as text, and ✗ need to be stored as secret.*
*Required:*
- *✓ can be stored as text. ✔ predefined in environment*
- *✗ mounted file.*
- *✱ need to be stored as secret.*
## Releasing Service

View File

@@ -16,6 +16,7 @@ spring:
data:
redis:
port: 6379
database: 2
server:
error:
@@ -59,7 +60,6 @@ spring:
data:
redis:
host: localhost
database: 2
server:
error:
@@ -84,11 +84,9 @@ spring:
data:
redis:
host: Redis
database: 2
server:
error:
include-exception: true
include-message: always
account-registry:
@@ -99,9 +97,19 @@ device-registry:
---
##############################
### Production environment ###
### Kubernetes environment ###
##############################
spring:
config:
activate:
on-profile: production
on-profile: kubernetes
data:
redis:
host: dependency-redis-master
account-registry:
url: http://account-register
device-registry:
url: http://device-register