ebe94b89cbd28e9c8579e86cda87e16bb1199bc3
[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
27 pap:
28   name: PapGroup
29   aaf: false
30   pdpParameters:
31     heartBeatMs: 120000
32     updateParameters:
33       maxRetryCount: 1
34       maxWaitMs: 30000
35     stateChangeParameters:
36       maxRetryCount: 1
37       maxWaitMs: 30000
38   savePdpStatisticsInDb: true
39   topicParameterGroup:
40     topicSources:
41     - topic: POLICY-PDP-PAP
42       servers:
43       - message-router
44       topicCommInfrastructure: dmaap
45       fetchTimeout: 15000
46     - topic: POLICY-HEARTBEAT
47       effectiveTopic: POLICY-PDP-PAP
48       consumerGroup: policy-pap
49       servers:
50       - message-router
51       topicCommInfrastructure: dmaap
52       fetchTimeout: 15000
53     topicSinks:
54     - topic: POLICY-PDP-PAP
55       servers:
56       - message-router
57       topicCommInfrastructure: dmaap
58     - topic: POLICY-NOTIFICATION
59       servers:
60       - message-router
61       topicCommInfrastructure: dmaap
62   healthCheckRestClientParameters:
63   - clientName: api
64     hostname: policy-api
65     port: 6969
66     userName: policyadmin
67     password: zb!XztG34
68     useHttps: true
69     basePath: policy/api/v1/healthcheck
70   - clientName: distribution
71     hostname: policy-distribution
72     port: 6969
73     userName: healthcheck
74     password: zb!XztG34
75     useHttps: true
76     basePath: healthcheck
77   - clientName: dmaap
78     hostname: message-router
79     port: 3905
80     useHttps: true
81     basePath: topics
82
83 management:
84   endpoints:
85     web:
86       base-path: /
87       exposure:
88         include: health, metrics, prometheus
89       path-mapping.prometheus: metrics