PatrikBuhr | 9e3ded9 | 2023-03-07 13:16:43 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=============================================== |
PatrikBuhr | 880aa3d | 2023-04-20 13:37:37 +0200 | [diff] [blame] | 2 | # Copyright (C) 2022-2023 Nordix Foundation. All rights reserved. |
PatrikBuhr | 9e3ded9 | 2023-03-07 13:16:43 +0100 | [diff] [blame] | 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 |
PatrikBuhr | 3a9d09f | 2023-03-24 08:53:47 +0100 | [diff] [blame] | 87 | # Configures if oath2 tokens shall be used. If set to true, auth-token-file must also be configured |
PatrikBuhr | 2989695 | 2023-03-21 10:16:11 +0100 | [diff] [blame] | 88 | use-oath-token: false |
| 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: |
PatrikBuhr | 9e3ded9 | 2023-03-07 13:16:43 +0100 | [diff] [blame] | 96 | influx: |
| 97 | url: http://localhost:8086 |
| 98 | access-token: xmrt1YobMTl-Nx-a8iiO6fC8xJc5BvKZLSU8U18VfAYza4N0YHTFrLy15W4Ss2bxXhgX95qagxsBJ0GCBSFveQ== |
| 99 | bucket: pm_data |
| 100 | org: est |
| 101 | # The user, password and database can be blank if the access-token is defined |
| 102 | user: admin |
| 103 | password: adminadmin |
| 104 | database: pm_data |
| 105 | ics-base-url: https://localhost:8434 |
| 106 | consumer-job-id: "pmlog" |
PatrikBuhr | 2989695 | 2023-03-21 10:16:11 +0100 | [diff] [blame] | 107 | # If the file name is empty, no authorization token is used |
| 108 | auth-token-file: |
PatrikBuhr | 9e3ded9 | 2023-03-07 13:16:43 +0100 | [diff] [blame] | 109 | |
| 110 | |