RED-9251: increased maximumPoolSize to 10 See merge request fforesight/tenant-user-management-service!106
197 lines
6.5 KiB
YAML
197 lines
6.5 KiB
YAML
server:
|
|
port: 28181
|
|
|
|
management:
|
|
endpoint:
|
|
metrics.enabled: ${monitoring.enabled:false}
|
|
prometheus.enabled: ${monitoring.enabled:false}
|
|
health.enabled: true
|
|
endpoints.web.exposure.include: prometheus, health, metrics
|
|
metrics.export.prometheus.enabled: ${monitoring.enabled:false}
|
|
|
|
info:
|
|
description: Tenant User Management Service
|
|
|
|
|
|
spring:
|
|
datasource:
|
|
url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true
|
|
driverClassName: org.postgresql.Driver
|
|
username: ${PSQL_USERNAME:fforesight}
|
|
password: ${PSQL_PASSWORD:fforesight}
|
|
platform: org.hibernate.dialect.PostgreSQL95Dialect
|
|
hikari:
|
|
maximumPoolSize: 10
|
|
minimum-idle: 2
|
|
data-source-properties:
|
|
cachePrepStmts: true
|
|
prepStmtCacheSize: 1000
|
|
prepStmtCacheSqlLimit: 2048
|
|
jackson:
|
|
serialization:
|
|
write-dates-as-timestamps: false
|
|
deserialization:
|
|
accept-single-value-as-array: true
|
|
main:
|
|
allow-bean-definition-overriding: true
|
|
allow-circular-references: true
|
|
jpa:
|
|
open-in-view: true
|
|
database-platform: org.hibernate.dialect.PostgreSQL95Dialect
|
|
hibernate:
|
|
ddl-auto: none
|
|
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
|
properties:
|
|
hibernate:
|
|
jdbc:
|
|
batch_size: 1000
|
|
order_inserts: true
|
|
order_updates: true
|
|
cache:
|
|
type: redis
|
|
mvc:
|
|
pathmatch:
|
|
matching-strategy: ant-path-matcher
|
|
redis:
|
|
host: ${REDIS_HOST:localhost}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:}
|
|
|
|
|
|
rabbitmq:
|
|
host: ${RABBITMQ_HOST:localhost}
|
|
port: ${RABBITMQ_PORT:5672}
|
|
username: ${RABBITMQ_USERNAME:user}
|
|
password: ${RABBITMQ_PASSWORD:rabbitmq}
|
|
listener:
|
|
simple:
|
|
acknowledge-mode: AUTO
|
|
concurrency: 5
|
|
retry:
|
|
enabled: true
|
|
max-attempts: 3
|
|
max-interval: 15000
|
|
prefetch: 1
|
|
|
|
liquibase:
|
|
change-log: classpath:/db/changelog/db.changelog-master.yaml
|
|
enabled: true
|
|
application:
|
|
name: tenant-user-management
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:localhost}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:}
|
|
fforesight:
|
|
keycloak:
|
|
ignored-endpoints: [ '/actuator/health', '/tenant-user-management','/internal/**','/tenant-user-management/docs/**','/tenant-user-management/docs','/tenant-user-management/tenants/simple' ]
|
|
enabled: true
|
|
springdoc:
|
|
base-path: '/tenant-user-management'
|
|
auth-server-url: '/auth'
|
|
enabled: true
|
|
default-client-id: 'swagger-ui-client'
|
|
default-tenant: 'fforesight'
|
|
tenant-exchange:
|
|
name: 'tenants-exchange'
|
|
user-exchange:
|
|
name: 'users-exchange'
|
|
tenant-user-management:
|
|
base-path: '/tenant-user-management'
|
|
realm: master
|
|
server-url: http://localhost:28181
|
|
client-secret: adminClientSecret
|
|
client-id: adminClient
|
|
login-theme: redaction
|
|
kc-role-mapping:
|
|
roles:
|
|
- name: SUPER_USER
|
|
set-by-default: true
|
|
rank: 100
|
|
permissions:
|
|
- 'fforesight-read-general-configuration'
|
|
- 'fforesight-write-general-configuration'
|
|
- 'fforesight-manage-user-preferences'
|
|
- 'fforesight-read-users'
|
|
- 'fforesight-read-all-users'
|
|
- 'fforesight-write-users'
|
|
- 'fforesight-update-my-profile'
|
|
- 'fforesight-create-tenant'
|
|
- 'fforesight-get-tenants'
|
|
- 'fforesight-update-tenant'
|
|
- 'fforesight-deployment-info'
|
|
- 'fforesight-read-smtp-configuration'
|
|
- 'fforesight-write-smtp-configuration'
|
|
- 'fforesight-read-identity-provider-config'
|
|
- 'fforesight-write-identity-provider-config'
|
|
- name: LESS_SUPER_USER
|
|
set-by-default: true
|
|
rank: 10
|
|
permissions:
|
|
- 'fforesight-read-general-configuration'
|
|
- 'fforesight-write-general-configuration'
|
|
- 'fforesight-manage-user-preferences'
|
|
- 'fforesight-read-users'
|
|
- 'fforesight-read-all-users'
|
|
- 'fforesight-write-users'
|
|
- 'fforesight-update-my-profile'
|
|
- 'fforesight-create-tenant'
|
|
- 'fforesight-get-tenants'
|
|
- 'fforesight-update-tenant'
|
|
- 'fforesight-deployment-info'
|
|
- 'fforesight-read-smtp-configuration'
|
|
- 'fforesight-write-smtp-configuration'
|
|
- 'fforesight-read-identity-provider-config'
|
|
- 'fforesight-write-identity-provider-config'
|
|
- name: KNECON_ADMIN
|
|
set-by-default: true
|
|
rank: 1000
|
|
permissions:
|
|
- 'fforesight-read-general-configuration'
|
|
- 'fforesight-write-general-configuration'
|
|
- 'fforesight-manage-user-preferences'
|
|
- 'fforesight-read-users'
|
|
- 'fforesight-read-all-users'
|
|
- 'fforesight-write-users'
|
|
- 'fforesight-update-my-profile'
|
|
- 'fforesight-create-tenant'
|
|
- 'fforesight-get-tenants'
|
|
- 'fforesight-update-tenant'
|
|
- 'fforesight-deployment-info'
|
|
- 'fforesight-read-smtp-configuration'
|
|
- 'fforesight-write-smtp-configuration'
|
|
- 'fforesight-read-identity-provider-config'
|
|
- 'fforesight-write-identity-provider-config'
|
|
- name: KNECON_SUPPORT
|
|
set-by-default: true
|
|
rank: 1000
|
|
permissions:
|
|
- 'fforesight-read-general-configuration'
|
|
- 'fforesight-write-general-configuration'
|
|
- 'fforesight-manage-user-preferences'
|
|
- 'fforesight-read-users'
|
|
- 'fforesight-read-all-users'
|
|
- 'fforesight-write-users'
|
|
- 'fforesight-update-my-profile'
|
|
- 'fforesight-create-tenant'
|
|
- 'fforesight-get-tenants'
|
|
- 'fforesight-update-tenant'
|
|
- 'fforesight-deployment-info'
|
|
- 'fforesight-read-smtp-configuration'
|
|
- 'fforesight-write-smtp-configuration'
|
|
- 'fforesight-read-identity-provider-config'
|
|
- 'fforesight-write-identity-provider-config'
|
|
access-token-life-span: 86400
|
|
application-name: tenant-user-management
|
|
application-client-id: tenant-user-management
|
|
swagger-client-secret: 'testSecret123!'
|
|
app-prefix: 'fforesight'
|
|
|
|
storage:
|
|
backend: both
|
|
|
|
cors.enabled: true
|
|
springdoc:
|
|
packages-to-scan: [ 'com.knecon.fforesight.tenantusermanagement.controller.external' ]
|