4a7083a04ed419c78d7277b3cb240df73d37667b
[policy/pap.git] / main / src / main / resources / application.yaml
1 spring:
2   security:
3     user:
4       name: policyadmin
5       password: zb!XztG34
6   http:
7     converters:
8       preferred-json-mapper: gson
9   datasource:
10     url: jdbc:mariadb://mariadb:3306/policyadmin
11     driverClassName: org.mariadb.jdbc.Driver
12     username: policy_user
13     password: policy_user
14   jpa:
15     properties:
16       hibernate:
17         dialect: org.hibernate.dialect.MariaDB103Dialect
18     hibernate:
19       ddl-auto: none
20       naming:
21         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
22         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
23
24 server:
25   port: 6969
26   servlet:
27     context-path: /policy/pap/v1
28 pap:
29   name: PapGroup
30   aaf: false
31   topic:
32     pdp-pap.name: POLICY-PDP-PAP
33     notification.name: POLICY-NOTIFICATION
34     heartbeat.name: POLICY-HEARTBEAT
35   pdpParameters:
36     heartBeatMs: 120000
37     updateParameters:
38       maxRetryCount: 1
39       maxWaitMs: 30000
40     stateChangeParameters:
41       maxRetryCount: 1
42       maxWaitMs: 30000
43   topicParameterGroup:
44     topicSources:
45     - topic: ${pap.topic.pdp-pap.name}
46       servers:
47       - message-router
48       topicCommInfrastructure: dmaap
49       fetchTimeout: 15000
50     - topic: ${pap.topic.heartbeat.name}
51       effectiveTopic: ${pap.topic.pdp-pap.name}
52       consumerGroup: policy-pap
53       servers:
54       - message-router
55       topicCommInfrastructure: dmaap
56       fetchTimeout: 15000
57     topicSinks:
58     - topic: ${pap.topic.pdp-pap.name}
59       servers:
60       - message-router
61       topicCommInfrastructure: dmaap
62     - topic: ${pap.topic.notification.name}
63       servers:
64       - message-router
65       topicCommInfrastructure: dmaap
66   healthCheckRestClientParameters:
67   - clientName: api
68     hostname: policy-api
69     port: 6969
70     userName: policyadmin
71     password: zb!XztG34
72     useHttps: true
73     basePath: policy/api/v1/healthcheck
74   - clientName: distribution
75     hostname: policy-distribution
76     port: 6969
77     userName: healthcheck
78     password: zb!XztG34
79     useHttps: true
80     basePath: healthcheck
81   - clientName: dmaap
82     hostname: message-router
83     port: 3905
84     useHttps: true
85     basePath: topics
86
87 management:
88   endpoints:
89     web:
90       base-path: /
91       exposure:
92         include: health, metrics, prometheus
93       path-mapping.metrics: plain-metrics
94       path-mapping.prometheus: metrics