update application properties

This commit is contained in:
2025-07-31 11:21:29 +02:00
parent a9cdf3592d
commit a44889da83
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 ## Properties for deployment
| name | required | info | | name | required | info |
|----------------------------|:--------:|-------------------------| |---------------------------------|:--------:|----------------------------|
| spring.profiles.active | ✓ | Spring Boot environment | | spring.profiles.active | ✗ | Spring Boot environment |
| spring.cache.type | | Cache type (redis) | | spring.session.timeout | | Session timeout |
| spring.data.redis.host | ✓ | Redis host | | spring.data.redis.database | | Redis database |
| spring.data.redis.port | | Redis port | | spring.data.redis.port | | Redis port |
| spring.data.redis.database | ✓ | Redis database | | spring.data.redis.host | ✔ | Redis host |
| spring.data.redis.password | ✗ | Redis password | | spring.data.redis.password | ✱ | Redis password |
| jwt.public-key | ✓ | JWT public key file | | server.error.include-exception | | Exception class on error |
| account-registry.url | ✓ | Account Register URL | | server.error.include-message | | Exception message on error |
| device-registry.url | ✓ | Device Register URL | | 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 ## Releasing Service

View File

@@ -16,6 +16,7 @@ spring:
data: data:
redis: redis:
port: 6379 port: 6379
database: 2
server: server:
error: error:
@@ -59,7 +60,6 @@ spring:
data: data:
redis: redis:
host: localhost host: localhost
database: 2
server: server:
error: error:
@@ -84,11 +84,9 @@ spring:
data: data:
redis: redis:
host: Redis host: Redis
database: 2
server: server:
error: error:
include-exception: true
include-message: always include-message: always
account-registry: account-registry:
@@ -99,9 +97,19 @@ device-registry:
--- ---
############################## ##############################
### Production environment ### ### Kubernetes environment ###
############################## ##############################
spring: spring:
config: config:
activate: 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