[SO] 16.0.2 release
[oom.git] / kubernetes / aai / components / aai-resources / resources / config / application.properties
1 {{/*
2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
3 # Modifications Copyright © 2020 Orange
4 # Modifications Copyright © 2023 Nordix Foundation
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 # The following info parameters are being referenced by ajsc6
19 */}}
20 info.build.artifact=aai-resources
21 info.build.name=resources
22 info.build.description=Resources Microservice
23 info.build.version=1.3.0
24
25 spring.application.name=aai-resources
26 spring.jersey.type=filter
27
28 spring.main.allow-bean-definition-overriding=true
29 server.servlet.context-path=/
30
31 management.tracing.enabled={{ .Values.global.tracing.enabled }}
32 management.tracing.sampling.probability={{ .Values.global.tracing.sampling.probability }}
33 management.tracing.propagation.type=w3c, b3
34 management.zipkin.tracing.endpoint={{ .Values.global.tracing.collector.baseUrl }}
35
36 spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,org.keycloak.adapters.springboot.KeycloakAutoConfiguration,org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration,org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration
37
38 spring.profiles.active={{ .Values.global.config.profiles.active }}
39 spring.jersey.application-path=${schema.uri.base.path}
40 #The max number of active threads in this pool
41 server.tomcat.max-threads=200
42 #The minimum number of threads always kept alive
43 server.tomcat.min-Spare-Threads=25
44 #The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
45 server.tomcat.max-idle-time=60000
46
47 # If you get an application startup failure that the port is already taken
48 # If thats not it, please check if the key-store file path makes sense
49 server.local.startpath=aai-resources/src/main/resources/
50
51 server.port={{ .Values.service.resourcesPort }}
52
53 spring.kafka.producer.bootstrap-servers=${BOOTSTRAP_SERVERS}
54 spring.kafka.producer.properties.security.protocol=SASL_PLAINTEXT
55 spring.kafka.producer.properties.sasl.mechanism=SCRAM-SHA-512
56 spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
57 spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
58 spring.kafka.producer.properties.sasl.jaas.config=${JAAS_CONFIG}
59 spring.kafka.producer.retries=3
60
61 # Schema related attributes for the oxm and edges
62 # Any additional schema related attributes should start with prefix schema
63 schema.configuration.location=N/A
64 schema.source.name={{ .Values.global.config.schema.source.name }}
65 schema.nodes.location=${server.local.startpath}/schema/${schema.source.name}/oxm/
66 schema.edges.location=${server.local.startpath}/schema/${schema.source.name}/dbedgerules/
67
68 schema.ingest.file=${server.local.startpath}/application.properties
69
70 # Schema Version Related Attributes
71
72 schema.uri.base.path={{ .Values.global.config.schema.uri.base.path }}
73 # Lists all of the versions in the schema
74 schema.version.list={{ .Values.global.config.schema.version.list }}
75 # Specifies from which version should the depth parameter to default to zero
76 schema.version.depth.start={{ .Values.global.config.schema.version.depth }}
77 # Specifies from which version should the related link be displayed in response payload
78 schema.version.related.link.start={{ .Values.global.config.schema.version.related.link }}
79
80 # Specifies from which version should the client see only the uri excluding host info
81 # Before this version server base will also be included
82 schema.version.app.root.start={{ .Values.global.config.schema.version.app.root }}
83 # Specifies from which version should the namespace be changed
84 schema.version.namespace.change.start={{ .Values.global.config.schema.version.namespace.change }}
85 # Specifies from which version should the client start seeing the edge label in payload
86 schema.version.edge.label.start={{ .Values.global.config.schema.version.edge.label }}
87 # Specifies the version that the application should default to
88 schema.version.api.default={{ .Values.global.config.schema.version.api.default }}
89
90 schema.translator.list={{ .Values.global.config.schema.translator.list }}
91 schema.service.base.url={{ include "common.scheme" . }}://aai-schema-service.{{ include "common.namespace" . }}:8452/aai/schema-service/v1/
92 schema.service.nodes.endpoint=nodes?version=
93 schema.service.edges.endpoint=edgerules?version=
94 schema.service.versions.endpoint=versions
95 schema.service.client=no-auth
96
97 #to expose the Prometheus scraping endpoint
98 management.server.port=8448
99 management.endpoints.enabled-by-default=true
100 management.endpoints.web.exposure.include=*
101 endpoints.enabled={{ .Values.endpoints.enabled }}
102 endpoints.info.enabled={{ .Values.endpoints.info.enabled }}
103 endpoints.prometheus.enabled={{ .Values.metrics.serviceMonitor.enabled }}
104 endpoints.health.enabled={{ .Values.endpoints.health.enabled }}
105 management.metrics.web.server.auto-time-requests=false
106 management.metrics.distribution.percentiles-histogram[http.server.requests]=true
107 management.metrics.distribution.sla[http.server.requests]=20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, 500ms, 1000ms, 5000ms, 7000ms
108 #Add common tag for grouping all aai related metrics
109 management.metrics.tags.group_id=aai
110 #It is not advisable to use labels to store dimensions with high cardinality. Enable this option only for debug purposes. For more information: https://github.com/micrometer-metrics/micrometer/issues/1584
111 scrape.uri.metrics=false
112
113 # If true, the actuator health check will be overriden
114 # to use the AaiGraphChecker check instead.
115 # This does the same as the /echo endpoint,
116 # but doesn't show up in micrometer metrics
117 aai.actuator.echo.enabled={{ .Values.actuator.echo.enabled }}
118 aai.graph.properties.path=${server.local.startpath}/etc/appprops/janusgraph-realtime.properties
119
120 aai.basic-auth.enabled={{ .Values.global.auth.enabled }}
121 {{- range $index, $user := .Values.global.auth.users }}
122 aai.basic-auth.users[{{ $index }}].username={{ $user.username }}
123 aai.basic-auth.users[{{ $index }}].password={{ $user.password }}
124 {{- end }}