6e64fd8400e8a0aab732dbd2bb08598f9826dd83
[oom.git] / kubernetes / aai / components / aai-graphadmin / resources / config / application.properties
1 {{/*
2 #
3 # ============LICENSE_START=======================================================
4 # org.onap.aai
5 # ================================================================================
6 # Copyright � 2018 AT&T Intellectual Property. All rights reserved.
7 # Modifications Copyright © 2021 Orange
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #    http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END=========================================================
21
22 # The following info parameters are being referenced by ajsc6
23 */}}
24 info.build.artifact=aai-graphadmin
25 info.build.name=resources
26 info.build.description=Resources Microservice
27 info.build.version=1.2.0
28
29 spring.application.name=aai-graphadmin
30 spring.jersey.type=filter
31
32 spring.main.allow-bean-definition-overriding=true
33 server.servlet.context-path=/
34
35 spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
36
37 spring.profiles.active={{ .Values.config.profiles.active }}{{ (eq "true" (include "common.needTLS" .)) | ternary ",one-way-ssl" "" }}
38 spring.jersey.application-path=${schema.uri.base.path}
39 #The max number of active threads in this pool
40 server.tomcat.max-threads=200
41 #The minimum number of threads always kept alive
42 server.tomcat.min-Spare-Threads=25
43 #The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
44 server.tomcat.max-idle-time=60000
45
46 # If you get an application startup failure that the port is already taken
47 # If thats not it, please check if the key-store file path makes sense
48 server.local.startpath=/opt/app/aai-graphadmin/resources/
49 server.basic.auth.location=${server.local.startpath}etc/auth/realm.properties
50
51 server.port=8449
52 {{ if ( include "common.needTLS" .) }}
53 server.ssl.enabled-protocols=TLSv1.1,TLSv1.2
54 server.ssl.key-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.jks
55 server.ssl.key-store-password=password(${KEYSTORE_JKS_PASSWORD})
56 server.ssl.trust-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.trust.jks
57 server.ssl.trust-store-password=password(${TRUSTSTORE_PASSWORD})
58 server.ssl.client-auth=want
59 server.ssl.key-store-type=JKS
60 {{ else }}
61 security.require-ssl=false
62 server.ssl.enabled=false
63 {{ end }}
64
65 # JMS bind address host port
66 jms.bind.address=tcp://localhost:61649
67 dmaap.ribbon.listOfServers=message-router.{{.Release.Namespace}}:{{ (eq "true" (include "common.needTLS" .)) | ternary 3905 3904 }}
68 dmaap.ribbon.transportType={{ include "common.scheme" . }}
69
70 # Schema related attributes for the oxm and edges
71 # Any additional schema related attributes should start with prefix schema
72 schema.configuration.location=N/A
73 schema.source.name={{ .Values.global.config.schema.source.name }}
74 schema.nodes.location=${server.local.startpath}/schema/${schema.source.name}/oxm/
75 schema.edges.location=${server.local.startpath}/schema/${schema.source.name}/dbedgerules/
76
77 schema.ingest.file=${server.local.startpath}/application.properties
78
79 # Schema Version Related Attributes
80
81 schema.uri.base.path={{ .Values.global.config.schema.uri.base.path }}
82 # Lists all of the versions in the schema
83 schema.version.list={{ .Values.global.config.schema.version.list }}
84 # Specifies from which version should the depth parameter to default to zero
85 schema.version.depth.start={{ .Values.global.config.schema.version.depth }}
86 # Specifies from which version should the related link be displayed in response payload
87 schema.version.related.link.start={{ .Values.global.config.schema.version.related.link }}
88
89 # Specifies from which version should the client see only the uri excluding host info
90 # Before this version server base will also be included
91 schema.version.app.root.start={{ .Values.global.config.schema.version.app.root }}
92 # Specifies from which version should the namespace be changed
93 schema.version.namespace.change.start={{ .Values.global.config.schema.version.namespace.change }}
94 # Specifies from which version should the client start seeing the edge label in payload
95 schema.version.edge.label.start={{ .Values.global.config.schema.version.edge.label }}
96 # Specifies the version that the application should default to
97 schema.version.api.default={{ .Values.global.config.schema.version.api.default }}
98
99 schema.translator.list={{ .Values.global.config.schema.translator.list }}
100 schema.service.base.url={{ include "common.scheme" . }}://aai-schema-service.{{ include "common.namespace" . }}:8452/aai/schema-service/v1/
101 schema.service.nodes.endpoint=nodes?version=
102 schema.service.edges.endpoint=edgerules?version=
103 schema.service.versions.endpoint=versions
104 schema.service.client={{ (eq "true" (include "common.needTLS" .)) | ternary .Values.global.config.schema.service.client "no-auth" }}
105
106 {{ if ( include "common.needTLS" .) }}
107 schema.service.ssl.key-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.jks
108 schema.service.ssl.trust-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.trust.jks
109 schema.service.ssl.key-store-password=password(${KEYSTORE_JKS_PASSWORD})
110 schema.service.ssl.trust-store-password=password(${TRUSTSTORE_PASSWORD})
111 {{ end }}
112
113 aperture.rdbmsname=aai_relational
114
115 aperture.service.client={{ (eq "true" (include "common.needTLS" .)) | ternary .Values.global.config.schema.service.client "no-auth" }}
116
117 aperture.service.base.url=http://localhost:8457/aai/aperture
118 {{ if ( include "common.needTLS" .) }}
119 aperture.service.ssl.key-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.jks
120 aperture.service.ssl.trust-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.trust.jks
121 aperture.service.ssl.key-store-password=password(${KEYSTORE_JKS_PASSWORD})
122 aperture.service.ssl.trust-store-password=password(${TRUSTSTORE_PASSWORD})
123 {{ end }}
124 aperture.service.timeout-in-milliseconds=300000
125
126 #To Expose the Prometheus scraping endpoint
127 management.port=8448
128 endpoints.enabled=false
129 management.security.enabled=false