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