RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # ONAP : ccsdk oran |
| 4 | # ================================================================================ |
PatrikBuhr | 1c317eb | 2023-02-23 12:39:31 +0100 | [diff] [blame] | 5 | # Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 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: |
lapentafd | f734a40 | 2024-05-30 15:47:34 +0100 | [diff] [blame] | 23 | application: |
| 24 | name: a1-pms |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 25 | profiles: |
| 26 | active: prod |
| 27 | main: |
| 28 | allow-bean-definition-overriding: true |
| 29 | aop: |
| 30 | auto: false |
aravind.est | b15c0ce | 2024-08-14 17:35:33 +0100 | [diff] [blame^] | 31 | r2dbc: |
| 32 | url: "r2dbc:postgresql://127.0.0.1:5432/a1pms" |
| 33 | username: a1pms |
| 34 | password: mypwd |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 35 | management: |
lapentafd | f734a40 | 2024-05-30 15:47:34 +0100 | [diff] [blame] | 36 | tracing: |
lapentafd | f734a40 | 2024-05-30 15:47:34 +0100 | [diff] [blame] | 37 | propagation: |
| 38 | produce: ${ONAP_PROPAGATOR_PRODUCE:[W3C]} |
| 39 | sampling: |
| 40 | probability: 1.0 |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 41 | endpoints: |
| 42 | web: |
| 43 | exposure: |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 44 | # Enabling of springboot actuator features. See springboot documentation. |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 45 | include: "loggers,logfile,health,info,metrics,threaddump,heapdump,shutdown" |
| 46 | endpoint: |
| 47 | shutdown: |
| 48 | enabled: true |
| 49 | lifecycle: |
| 50 | timeout-per-shutdown-phase: "20s" |
PatrikBuhr | 6e31874 | 2021-11-30 11:25:17 +0100 | [diff] [blame] | 51 | springdoc: |
| 52 | show-actuator: true |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 53 | logging: |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 54 | # Configuration of logging |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 55 | level: |
| 56 | ROOT: ERROR |
| 57 | org.springframework: ERROR |
| 58 | org.springframework.data: ERROR |
| 59 | org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 60 | org.springframework.web.servlet.DispatcherServlet: ERROR |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 61 | org.onap.ccsdk.oran.a1policymanagementservice: INFO |
halil.cakal | 9128de9 | 2022-09-23 15:22:41 +0100 | [diff] [blame] | 62 | pattern: |
| 63 | console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" |
| 64 | file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" |
RehanRaza | 0e63aeb | 2020-09-09 13:07:37 +0200 | [diff] [blame] | 65 | file: |
| 66 | name: /var/log/policy-agent/application.log |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 67 | server: |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 68 | # Configuration of the HTTP/REST server. The parameters are defined and handeled by the springboot framework. |
| 69 | # See springboot documentation. |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 70 | port : 8433 |
| 71 | http-port: 8081 |
PatrikBuhr | c0218ad | 2022-11-28 09:40:36 +0100 | [diff] [blame] | 72 | shutdown: "graceful" |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 73 | ssl: |
| 74 | key-store-type: JKS |
| 75 | key-store-password: policy_agent |
| 76 | key-store: /opt/app/policy-agent/etc/cert/keystore.jks |
| 77 | key-password: policy_agent |
| 78 | key-alias: policy_agent |
PatrikBuhr | 3f3a4d7 | 2022-05-30 14:22:46 +0200 | [diff] [blame] | 79 | # trust-store-password: |
| 80 | # trust-store: |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 81 | app: |
PatrikBuhr | 01162ea | 2022-01-12 16:15:34 +0100 | [diff] [blame] | 82 | # Location of the component configuration file. |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 83 | filepath: /opt/app/policy-agent/data/application_configuration.json |
| 84 | webclient: |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 85 | # Configuration of the trust store used for the HTTP client (outgoing requests) |
| 86 | # The file location and the password for the truststore is only relevant if trust-store-used == true |
| 87 | # Note that the same keystore as for the server is used. |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 88 | trust-store-used: false |
| 89 | trust-store-password: policy_agent |
| 90 | trust-store: /opt/app/policy-agent/etc/cert/truststore.jks |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 91 | # Configuration of usage of HTTP Proxy for the southbound accesses. |
| 92 | # The HTTP proxy (if configured) will only be used for accessing NearRT RIC:s |
PatrikBuhr | 9ec50cf | 2021-09-08 15:48:21 +0200 | [diff] [blame] | 93 | # proxy-type can be either HTTP, SOCKS4 or SOCKS5 |
PatrikBuhr | cd53b0c | 2020-11-10 13:59:49 +0100 | [diff] [blame] | 94 | http.proxy-host: |
PatrikBuhr | cef5a0b | 2020-11-06 12:07:28 +0100 | [diff] [blame] | 95 | http.proxy-port: 0 |
PatrikBuhr | 9ec50cf | 2021-09-08 15:48:21 +0200 | [diff] [blame] | 96 | http.proxy-type: HTTP |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 97 | # path where the service can store data. This parameter is not relevant if S3 Object store is configured. |
PatrikBuhr | b28e811 | 2021-04-14 20:16:35 +0200 | [diff] [blame] | 98 | vardata-directory: /var/policy-management-service |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 99 | # the config-file-schema-path referres to a location in the jar file. If this property is empty or missing, |
| 100 | # no schema validation will be executed. |
PatrikBuhr | e81a9de | 2021-10-08 14:08:59 +0200 | [diff] [blame] | 101 | config-file-schema-path: /application_configuration_schema.json |
PatrikBuhr | de7a573 | 2022-03-31 12:08:56 +0200 | [diff] [blame] | 102 | # A file containing an authorization token, which shall be inserted in each HTTP header (authorization). |
| 103 | # If the file name is empty, no authorization token is sent. |
| 104 | auth-token-file: |
PatrikBuhr | f07e4b3 | 2023-04-05 14:40:07 +0200 | [diff] [blame] | 105 | # A URL to authorization provider such as OPA. Each time an A1 Policy is accessed, a call to this |
| 106 | # authorization provider is done for access control. If this is empty, no fine grained access control is done. |
| 107 | authorization-provider: |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 108 | # S3 object store usage is enabled by defining the bucket to use. This will override the vardata-directory parameter. |
| 109 | s3: |
| 110 | endpointOverride: http://localhost:9000 |
| 111 | accessKeyId: minio |
| 112 | secretAccessKey: miniostorage |
| 113 | bucket: |
aravind.est | b15c0ce | 2024-08-14 17:35:33 +0100 | [diff] [blame^] | 114 | database-enabled: false |
lapentafd | f734a40 | 2024-05-30 15:47:34 +0100 | [diff] [blame] | 115 | otel: |
lapentafd | ad80065 | 2024-06-24 10:54:54 +0100 | [diff] [blame] | 116 | sdk: |
| 117 | disabled: ${ONAP_SDK_DISABLED:true} |
| 118 | south: ${ONAP_TRACING_SOUTHBOUND:true} |
| 119 | tracing: |
| 120 | sampler: |
| 121 | jaeger_remote: |
| 122 | endpoint: ${ONAP_OTEL_SAMPLER_JAEGER_REMOTE_ENDPOINT:http://jaeger:14250} |
lapentafd | f734a40 | 2024-05-30 15:47:34 +0100 | [diff] [blame] | 123 | exporter: |
| 124 | otlp: |
| 125 | traces: |
lapentafd | ad80065 | 2024-06-24 10:54:54 +0100 | [diff] [blame] | 126 | protocol: ${ONAP_OTEL_EXPORTER_PROTOCOL:grpc} |
| 127 | endpoint: ${ONAP_OTEL_EXPORTER_ENDPOINT:http://jaeger:4317} |
| 128 | metrics: |
| 129 | exporter: none |
| 130 | logs: |
| 131 | exporter: none |