blob: 3ef680237f963db05114cd3bb258f1b834f206ae [file] [log] [blame]
RehanRaza0e3740a2020-08-03 15:56:03 +02001#
2# ============LICENSE_START=======================================================
3# ONAP : ccsdk oran
4# ================================================================================
PatrikBuhr1c317eb2023-02-23 12:39:31 +01005# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
RehanRaza0e3740a2020-08-03 15:56:03 +02006# ================================================================================
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#
22spring:
lapentafdf734a402024-05-30 15:47:34 +010023 application:
24 name: a1-pms
RehanRaza0e3740a2020-08-03 15:56:03 +020025 profiles:
26 active: prod
27 main:
28 allow-bean-definition-overriding: true
29 aop:
30 auto: false
aravind.estb15c0ce2024-08-14 17:35:33 +010031 r2dbc:
32 url: "r2dbc:postgresql://127.0.0.1:5432/a1pms"
33 username: a1pms
34 password: mypwd
RehanRaza0e3740a2020-08-03 15:56:03 +020035management:
lapentafdf734a402024-05-30 15:47:34 +010036 tracing:
lapentafdf734a402024-05-30 15:47:34 +010037 propagation:
38 produce: ${ONAP_PROPAGATOR_PRODUCE:[W3C]}
39 sampling:
40 probability: 1.0
RehanRaza0e3740a2020-08-03 15:56:03 +020041 endpoints:
42 web:
43 exposure:
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010044 # Enabling of springboot actuator features. See springboot documentation.
PatrikBuhrc0218ad2022-11-28 09:40:36 +010045 include: "loggers,logfile,health,info,metrics,threaddump,heapdump,shutdown"
46 endpoint:
47 shutdown:
48 enabled: true
49lifecycle:
50 timeout-per-shutdown-phase: "20s"
PatrikBuhr6e318742021-11-30 11:25:17 +010051springdoc:
52 show-actuator: true
RehanRaza0e3740a2020-08-03 15:56:03 +020053logging:
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010054 # Configuration of logging
RehanRaza0e3740a2020-08-03 15:56:03 +020055 level:
56 ROOT: ERROR
57 org.springframework: ERROR
58 org.springframework.data: ERROR
59 org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
PatrikBuhrf07e4b32023-04-05 14:40:07 +020060 org.springframework.web.servlet.DispatcherServlet: ERROR
RehanRaza0e3740a2020-08-03 15:56:03 +020061 org.onap.ccsdk.oran.a1policymanagementservice: INFO
halil.cakal9128de92022-09-23 15:22:41 +010062 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"
RehanRaza0e63aeb2020-09-09 13:07:37 +020065 file:
66 name: /var/log/policy-agent/application.log
RehanRaza0e3740a2020-08-03 15:56:03 +020067server:
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010068 # Configuration of the HTTP/REST server. The parameters are defined and handeled by the springboot framework.
69 # See springboot documentation.
RehanRaza0e3740a2020-08-03 15:56:03 +020070 port : 8433
71 http-port: 8081
PatrikBuhrc0218ad2022-11-28 09:40:36 +010072 shutdown: "graceful"
RehanRaza0e3740a2020-08-03 15:56:03 +020073 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
PatrikBuhr3f3a4d72022-05-30 14:22:46 +020079 # trust-store-password:
80 # trust-store:
RehanRaza0e3740a2020-08-03 15:56:03 +020081app:
PatrikBuhr01162ea2022-01-12 16:15:34 +010082 # Location of the component configuration file.
RehanRaza0e3740a2020-08-03 15:56:03 +020083 filepath: /opt/app/policy-agent/data/application_configuration.json
84 webclient:
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010085 # 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.
RehanRaza0e3740a2020-08-03 15:56:03 +020088 trust-store-used: false
89 trust-store-password: policy_agent
90 trust-store: /opt/app/policy-agent/etc/cert/truststore.jks
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010091 # 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
PatrikBuhr9ec50cf2021-09-08 15:48:21 +020093 # proxy-type can be either HTTP, SOCKS4 or SOCKS5
PatrikBuhrcd53b0c2020-11-10 13:59:49 +010094 http.proxy-host:
PatrikBuhrcef5a0b2020-11-06 12:07:28 +010095 http.proxy-port: 0
PatrikBuhr9ec50cf2021-09-08 15:48:21 +020096 http.proxy-type: HTTP
PatrikBuhre3693cf2022-10-14 11:38:22 +020097 # path where the service can store data. This parameter is not relevant if S3 Object store is configured.
PatrikBuhrb28e8112021-04-14 20:16:35 +020098 vardata-directory: /var/policy-management-service
PatrikBuhrde7a5732022-03-31 12:08:56 +020099 # 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.
PatrikBuhre81a9de2021-10-08 14:08:59 +0200101 config-file-schema-path: /application_configuration_schema.json
PatrikBuhrde7a5732022-03-31 12:08:56 +0200102 # 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:
PatrikBuhrf07e4b32023-04-05 14:40:07 +0200105 # 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:
PatrikBuhre3693cf2022-10-14 11:38:22 +0200108 # 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.estb15c0ce2024-08-14 17:35:33 +0100114 database-enabled: false
lapentafdf734a402024-05-30 15:47:34 +0100115otel:
lapentafdad800652024-06-24 10:54:54 +0100116 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}
lapentafdf734a402024-05-30 15:47:34 +0100123 exporter:
124 otlp:
125 traces:
lapentafdad800652024-06-24 10:54:54 +0100126 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