elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # ONAP : ccsdk oran |
| 4 | # ================================================================================ |
| 5 | # Copyright (C) 2020 Nordix Foundation. All rights reserved. |
| 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | # SPDX-License-Identifier: Apache-2.0 |
| 20 | # ============LICENSE_END========================================================= |
| 21 | # |
| 22 | spring: |
| 23 | profiles: |
| 24 | active: prod |
| 25 | main: |
| 26 | allow-bean-definition-overriding: true |
| 27 | aop: |
| 28 | auto: false |
| 29 | management: |
| 30 | endpoints: |
| 31 | web: |
| 32 | exposure: |
| 33 | # Enabling of springboot actuator features. See springboot documentation. |
ychacon | b06958e | 2023-02-10 13:12:40 +0100 | [diff] [blame] | 34 | include: "loggers,logfile,health,info,metrics,threaddump,heapdump,shutdown" |
| 35 | endpoint: |
| 36 | shutdown: |
| 37 | enabled: true |
| 38 | lifecycle: |
| 39 | timeout-per-shutdown-phase: "20s" |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 40 | springdoc: |
| 41 | show-actuator: true |
| 42 | logging: |
| 43 | # Configuration of logging |
| 44 | level: |
| 45 | ROOT: ERROR |
| 46 | org.springframework: ERROR |
| 47 | org.springframework.data: ERROR |
| 48 | org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR |
PatrikBuhr | c863c9f | 2023-01-03 13:43:35 +0100 | [diff] [blame] | 49 | org.springframework.web.servlet.DispatcherServlet: INFO |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 50 | org.onap.ccsdk.oran.a1policymanagementservice: INFO |
PatrikBuhr | c863c9f | 2023-01-03 13:43:35 +0100 | [diff] [blame] | 51 | pattern: |
| 52 | console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" |
| 53 | file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 54 | file: |
| 55 | name: /var/log/policy-agent/application.log |
| 56 | server: |
| 57 | # Configuration of the HTTP/REST server. The parameters are defined and handeled by the springboot framework. |
| 58 | # See springboot documentation. |
| 59 | port : 8433 |
| 60 | http-port: 8081 |
ychacon | b06958e | 2023-02-10 13:12:40 +0100 | [diff] [blame] | 61 | shutdown: "graceful" |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 62 | ssl: |
| 63 | key-store-type: JKS |
| 64 | key-store-password: policy_agent |
| 65 | key-store: /opt/app/policy-agent/etc/cert/keystore.jks |
| 66 | key-password: policy_agent |
| 67 | key-alias: policy_agent |
PatrikBuhr | 5fb02c4 | 2022-06-21 14:25:39 +0200 | [diff] [blame] | 68 | # trust-store-password: |
| 69 | # trust-store: |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 70 | app: |
| 71 | # Location of the component configuration file. |
| 72 | filepath: /opt/app/policy-agent/data/application_configuration.json |
| 73 | webclient: |
| 74 | # Configuration of the trust store used for the HTTP client (outgoing requests) |
| 75 | # The file location and the password for the truststore is only relevant if trust-store-used == true |
| 76 | # Note that the same keystore as for the server is used. |
| 77 | trust-store-used: false |
| 78 | trust-store-password: policy_agent |
| 79 | trust-store: /opt/app/policy-agent/etc/cert/truststore.jks |
| 80 | # Configuration of usage of HTTP Proxy for the southbound accesses. |
| 81 | # The HTTP proxy (if configured) will only be used for accessing NearRT RIC:s |
| 82 | # proxy-type can be either HTTP, SOCKS4 or SOCKS5 |
| 83 | http.proxy-host: |
| 84 | http.proxy-port: 0 |
| 85 | http.proxy-type: HTTP |
PatrikBuhr | c863c9f | 2023-01-03 13:43:35 +0100 | [diff] [blame] | 86 | # path where the service can store data. This parameter is not relevant if S3 Object store is configured. |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 87 | vardata-directory: /var/policy-management-service |
PatrikBuhr | 54095a2 | 2022-05-27 11:08:34 +0200 | [diff] [blame] | 88 | # the config-file-schema-path referres to a location in the jar file. If this property is empty or missing, |
| 89 | # no schema validation will be executed. |
elinuxhenrik | 02cb601 | 2022-04-04 13:07:36 +0200 | [diff] [blame] | 90 | config-file-schema-path: /application_configuration_schema.json |
PatrikBuhr | 4664e0a | 2022-04-27 15:16:25 +0200 | [diff] [blame] | 91 | # A file containing an authorization token, which shall be inserted in each HTTP header (authorization). |
| 92 | # If the file name is empty, no authorization token is sent. |
| 93 | auth-token-file: |
PatrikBuhr | c863c9f | 2023-01-03 13:43:35 +0100 | [diff] [blame] | 94 | # S3 object store usage is enabled by defining the bucket to use. This will override the vardata-directory parameter. |
| 95 | s3: |
| 96 | endpointOverride: http://localhost:9000 |
| 97 | accessKeyId: minio |
| 98 | secretAccessKey: miniostorage |
| 99 | bucket: |