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