Merge "Stepping to springboot 3"
[nonrtric.git] / pmlog / config / application.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023-2022 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 spring:
19   profiles:
20     active: prod
21   main:
22     allow-bean-definition-overriding: true
23   aop:
24     auto: false
25 management:
26   endpoints:
27     web:
28       exposure:
29         # Enabling of springboot actuator features. See springboot documentation.
30         include: "loggers,logfile,health,info,metrics,threaddump,heapdump,shutdown"
31   endpoint:
32     shutdown:
33       enabled: true
34 lifecycle:
35   timeout-per-shutdown-phase: "20s"
36 springdoc:
37   show-actuator: true
38 logging:
39   # Configuration of logging
40   level:
41     ROOT: WARN
42     org.apache.kafka: WARN
43     org.springframework: ERROR
44     org.springframework.data: ERROR
45     org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
46     org.oran.pmlog: INFO
47   pattern:
48     console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level]  %logger{20} - %msg%n"
49     file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level]  %logger{20} - %msg%n"
50
51   file:
52     name: /var/log/pmlog-service/application.log
53 server:
54    # Configuration of the HTTP/REST server. The parameters are defined and handeled by the springboot framework.
55    # See springboot documentation.
56   port : 8436
57   http-port: 8084
58   ssl:
59     key-store-type: JKS
60     key-store-password: policy_agent
61     key-store: /opt/app/pmlog-service/etc/cert/keystore.jks
62     key-password: policy_agent
63     key-alias: policy_agent
64   shutdown: "graceful"
65 app:
66   webclient:
67     # Configuration of the trust store used for the HTTP client (outgoing requests)
68     # The file location and the password for the truststore is only relevant if trust-store-used == true
69     # Note that the same keystore as for the server is used.
70     trust-store-used: false
71     trust-store-password: policy_agent
72     trust-store: /opt/app/pmlog-service/etc/cert/truststore.jks
73     # Configuration of usage of HTTP Proxy for the southbound accesses.
74     # The HTTP proxy (if configured) will only be used for accessing NearRT RIC:s
75     http.proxy-host:
76     http.proxy-port: 0
77   kafka:
78     # KAFKA boostrap servers.
79     # several redundant boostrap servers can be specified, separated by a comma ','.
80     # bootstrap-servers and input-topic is overriden if defined in deliveryInfo in config/jobDefinition.json
81     bootstrap-servers: localhost:9092
82     input-topic:
83     # The maximum number of records returned in a single call to poll() (default 100)
84     max-poll-records: 500
85     group-id: kafkaGroupId
86     client-id: kafkaClientId
87   influx:
88     url: http://localhost:8086
89     access-token: xmrt1YobMTl-Nx-a8iiO6fC8xJc5BvKZLSU8U18VfAYza4N0YHTFrLy15W4Ss2bxXhgX95qagxsBJ0GCBSFveQ==
90     bucket: pm_data
91     org: est
92     # The user, password and database can be blank if the access-token is defined
93     user: admin
94     password: adminadmin
95     database: pm_data
96   ics-base-url: https://localhost:8434
97   consumer-job-id: "pmlog"
98
99