Added docker-compose ranpm
[nonrtric/plt/ranpm.git] / docker-proj / config / pmpr / application.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 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"
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: TRACE
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: http://ics:8083
78   configuration-filepath: /opt/app/pm-producer-service/data/application_configuration.json
79   #Override from env var
80   pm-producer-base-url:
81   # KAFKA boostrap servers. This is only needed if there are Information Types that uses a kafkaInputTopic
82   # several redundant boostrap servers can be specified, separated by a comma ','.
83   kafka:
84     bootstrap-servers: kafka-1:9097
85     # The maximum number of records returned in a single call to poll() (default 100)
86     max-poll-records: 500
87     # Configues if oath2 tokens shall be used. If set to true, auth-token-file must also be configured
88     use-oath-token: true
89     ssl:
90       key-store-type: PEM
91       key-store-location:
92       # key password is needed if the private key is encrypted
93       key-store-password:
94       trust-store-type: PEM
95       trust-store-location:
96   # If the file name is empty, no authorization token is used
97   auth-token-file: /token-cache/jwt.txt
98   pm-files-path: /pm-files
99   zip-output: false
100   s3:
101     endpointOverride:
102     accessKeyId: admin
103     secretAccessKey: adminadmin
104     locksBucket: pm-files-json-locks
105     bucket: pm-files-json