Configuration
name: ArdynCitizen
port: 8010
mode: debug
encryption:
privateKey: cert/id_rsa.pem
publicKey: cert/id_rsa.pub
auth:
password:
enabled: true
pattern: .*
min: 8
max: 30
tokenValidity: 86400
cors:
allowOrigins:
- "*"
allowMethods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
- PATCH
allowHeaders:
- Content-Type
- Authorization
allowCredentials: true
datasource:
type: mysql
host: localhost
port: 3306
username: root
password: password
schema: ardyncitizen-test
kafka:
groupId: ardyncitizen-group
brokers:
- localhost:9092
publishers:
- name: user_created
topic: app.usercreated.v1
- name: user_updated
topic: app.userupdated.v1
consumers:
- name: updateuserexternal
topic: app.updateuserexternal.v1
policies:
users:
mustValidate: true
defaultRoles:
- ROLE_USER
resources:
#- resource: /v1/user/me
# method: get
# roles:
# - ROLE_ADMIN
seeders:
roles:
- role: ROLE_USER
description: General user role
- role: ROLE_ADMIN
description: Administrative roleLast updated