- update and cleanup in README.md - update getIdentity to throw response exception with 401 in JwtService - update http files to use identity from env - add cacheable to getIdentityFromDevice in DeviceRegistryService - add RedisCacheConfiguration - add CacheProperty - set up cache property - set up data redis cache
129 lines
2.1 KiB
YAML
129 lines
2.1 KiB
YAML
spring:
|
|
profiles:
|
|
active: development
|
|
application:
|
|
name: "%APP_NAME%"
|
|
version: "%APP_VERSION%"
|
|
build:
|
|
time: "%APP_BUILD_TIME%"
|
|
os:
|
|
name: "%APP_BUILD_OS_NAME%"
|
|
version: "%APP_BUILD_OS_VERSION%"
|
|
cache:
|
|
type: redis
|
|
data:
|
|
redis:
|
|
port: 6379
|
|
database: 1
|
|
|
|
management:
|
|
endpoints:
|
|
enabled-by-default: false
|
|
web:
|
|
exposure:
|
|
include: "health,info"
|
|
endpoint:
|
|
health:
|
|
enabled: true
|
|
show-details: always
|
|
info:
|
|
enabled: true
|
|
influx:
|
|
metrics:
|
|
export:
|
|
api-version: v2
|
|
bucket: hlaeja
|
|
org: hlaeja_ltd
|
|
|
|
cache:
|
|
time-to-live: 10
|
|
|
|
jwt:
|
|
public-key: cert/public_key.pem
|
|
|
|
---
|
|
###############################
|
|
### Development environment ###
|
|
###############################
|
|
spring:
|
|
config:
|
|
activate:
|
|
on-profile: development
|
|
data:
|
|
redis:
|
|
host: localhost
|
|
|
|
management:
|
|
metrics:
|
|
tags:
|
|
application: device-api
|
|
influx:
|
|
metrics:
|
|
export:
|
|
enabled: false
|
|
token: %INFLUXDB_TOKEN%
|
|
|
|
server:
|
|
port: 8443
|
|
ssl:
|
|
enabled: true
|
|
key-store: classpath:cert/keystore.p12
|
|
key-store-type: PKCS12
|
|
key-store-password: password
|
|
|
|
device-registry:
|
|
url: http://localhost:9010
|
|
|
|
device-data:
|
|
url: http://localhost:9020
|
|
|
|
device-configuration:
|
|
url: http://localhost:9030
|
|
|
|
---
|
|
##########################
|
|
### Docker environment ###
|
|
##########################
|
|
spring:
|
|
config:
|
|
activate:
|
|
on-profile: docker
|
|
data:
|
|
redis:
|
|
host: Redis
|
|
|
|
management:
|
|
metrics:
|
|
tags:
|
|
application: device-api
|
|
influx:
|
|
metrics:
|
|
export:
|
|
uri: http://InfluxDB:8086
|
|
|
|
server:
|
|
port: 8443
|
|
ssl:
|
|
enabled: true
|
|
key-store: classpath:cert/keystore.p12
|
|
key-store-type: PKCS12
|
|
key-store-password: password
|
|
|
|
device-registry:
|
|
url: http://DeviceRegistry:8080
|
|
|
|
device-data:
|
|
url: http://DeviceData:8080
|
|
|
|
device-configuration:
|
|
url: http://DeviceConfiguration:8080
|
|
|
|
---
|
|
##############################
|
|
### Production environment ###
|
|
##############################
|
|
spring:
|
|
config:
|
|
activate:
|
|
on-profile: production
|