Bugfix, configuration-filepath missing in application.yaml
[nonrtric/plt/ranpm.git] / pmproducer / config / application.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2022-2023 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.pmproducer: 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/pm-producer-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 : 8435
57   http-port: 8084
58   ssl:
59     key-store-type: JKS
60     key-store-password: policy_agent
61     key-store: /opt/app/pm-producer-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/pm-producer-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   ics-base-url: https://localhost:8434
78   # Location of the component configuration file.
79   configuration-filepath: /opt/app/pm_producer-service/data/application_configuration.json
80
81   # The url used to adress this component. This is used as a callback url sent to other components.
82   pm-producer-base-url: https://localhost:8435
83   # KAFKA boostrap servers. This is only needed if there are Information Types that uses a kafkaInputTopic
84   # several redundant boostrap servers can be specified, separated by a comma ','.
85   kafka:
86     bootstrap-servers: localhost:9092
87     # The maximum number of records returned in a single call to poll() (default 100)
88     max-poll-records: 500
89   # If the file name is empty, no authorization token is used
90   auth-token-file:
91   pm-files-path: /tmp
92   zip-output: false
93   s3:
94     endpointOverride: http://localhost:9000
95     accessKeyId: minio
96     secretAccessKey: miniostorage
97     locksBucket: ropfilelocks
98     bucket: ropfiles