diff --git a/README.md b/README.md index f7b6432..5323e56 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,25 @@ 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.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 | +| name | required | info | +|---------------------------------|:--------:|----------------------------| +| 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.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 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ae62301..d2587eb 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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 +