c5bab26c4033ad5e6c41d7fc43ea2e910ebec40e
[clamp.git] / src / main / resources / application.properties
1 ###
2 # ============LICENSE_START=======================================================
3 # ONAP CLAMP
4 # ================================================================================
5 # Copyright (C) 2017-2019 AT&T Intellectual Property. All rights
6 #                             reserved.
7 # ================================================================================
8 # Modifications copyright (c) 2019 Nokia
9 # ================================================================================\
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 # http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END============================================
22 # ===================================================================
23 #
24 ###
25
26 ### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time).
27 ### (See below for the parameter 'server.http.port' if you want to have both enabled)
28 ### To have only HTTP, keep the lines server.ssl.* commented
29 ### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location
30 ### server.port=8080
31 ### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')
32 #server.ssl.key-store=file:/tmp/mykey.jks
33 #server.ssl.key-store-password=pass
34 #server.ssl.key-password=pass
35
36 ### In order to be user friendly when HTTPS is enabled,
37 ### you can add another HTTP port that will be automatically redirected to HTTPS
38 ### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...)
39 #server.http-to-https-redirection.port=8090
40
41 ### HTTP Example:
42 ###--------------
43 ### server.port=8080
44
45 ### HTTPS Example:
46 ### --------------
47 ### server.port=8443
48 ### server.ssl.key-store=file:/tmp/mykey.jks
49 ### server.ssl.key-store-password=mypass
50 ### server.ssl.key-password=mypass
51
52 ### HTTP (Redirected to HTTPS) and HTTPS Example:
53 ### --------------------------------------------
54 server.port=8443
55 ## Config part for Server certificates
56 # Can be a classpath parameter instead of file:/
57 server.ssl.key-store=classpath:/clds/aaf/org.onap.clamp.p12
58 server.ssl.key-store-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
59 server.ssl.key-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
60 server.ssl.key-store-type=PKCS12
61 server.ssl.key-alias=clamp@clamp.onap.org
62
63 # The key file used to decode the key store and trust store password
64 # If not defined, the key store and trust store password will not be decrypted
65 clamp.config.keyFile=classpath:/clds/aaf/org.onap.clamp.keyfile
66
67 ## Config part for Client certificates
68 server.ssl.client-auth=want
69 server.ssl.trust-store=classpath:/clds/aaf/truststoreONAPall.jks
70 server.ssl.trust-store-password=enc:iDnPBBLq_EMidXlMa1FEuBR8TZzYxrCg66vq_XfLHdJ
71
72 #server.http-to-https-redirection.port=8080
73
74 server.servlet.context-path=/
75 #Modified engine-rest applicationpath
76 spring.profiles.active=clamp-default,clamp-aaf-authentication,clamp-sdc-controller,clamp-ssl-config,clamp-policy-controller,legacy-operational-policy,default-dictionary-elements
77 spring.http.converters.preferred-json-mapper=gson
78
79 #The max number of active threads in this pool
80 server.tomcat.max-threads=200
81 #The minimum number of threads always kept alive
82 server.tomcat.min-Spare-Threads=25
83 #The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
84 server.tomcat.max-idle-time=60000
85
86 #Servlet context parameters
87 server.context_parameters.p-name=value #context parameter with p-name as key and value as value.
88 camel.springboot.tracing=true
89 camel.springboot.consumer-template-cache-size=1000
90 camel.springboot.producer-template-cache-size=1000
91 camel.springboot.jmx-enabled=true
92 camel.defaultthreadpool.poolsize=10
93 camel.defaultthreadpool.maxpoolsize=20
94 camel.defaultthreadpool.maxqueuesize=1000
95 camel.defaultthreadpool.keepaliveTime=60
96 camel.defaultthreadpool.rejectpolicy=CallerRuns
97 #camel.springboot.xmlRoutes = false
98 camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml
99 camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
100 #camel.springboot.typeConversion = false
101
102 #clds datasource connection details
103 spring.datasource.driverClassName=org.mariadb.jdbc.Driver
104 spring.datasource.url=jdbc:mariadb:sequential://localhost:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
105 spring.datasource.username=clds
106 spring.datasource.password=sidnnd83K
107 spring.datasource.validationQuery=SELECT 1
108 spring.datasource.validationQueryTimeout=20000
109 spring.datasource.validationInterval=30000
110 spring.datasource.testWhileIdle = true
111 spring.datasource.minIdle = 0
112 spring.datasource.initialSize=0
113 # Automatically test whether a connection provided is good or not
114 spring.datasource.testOnBorrow=true
115 spring.datasource.ignoreExceptionOnPreLoad=true
116
117 spring.jpa.properties.javax.persistence.schema-generation.database.action=none
118 #spring.jpa.properties.javax.persistence.schema-generation.create-source=metadata
119 #spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
120 #spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql
121 # disable Hibernate DDL generation because the schema will be generated from a sql script
122 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
123 spring.jpa.properties.hibernate.ddl-auto=validate
124 spring.jpa.properties.hibernate.hbm2ddl.delimiter=;
125 spring.jpa.properties.hibernate.format_sql=true
126 spring.jpa.properties.hibernate.use-new-id-generator-mappings=true
127
128 # Whether to enable logging of SQL statements.
129 #spring.jpa.show-sql=true
130
131 #Async Executor default Parameters
132 async.core.pool.size=10
133 async.max.pool.size=20
134 async.queue.capacity=500
135
136 #For EELF logback file
137 #clamp.config.logback.path=
138 clamp.config.logback.filename=logback-default.xml
139 #The log folder that will be used in logback.xml file
140 clamp.config.log.path=/var/log/onap/clamp
141 clamp.config.files.systemProperties=classpath:/system.properties
142 clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
143 clamp.config.files.globalProperties=classpath:/clds/templates/globalProperties.json
144 clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
145
146 #
147 # Configuration Settings for Policy Engine Components
148 clamp.config.policy.api.url=http4://policy.api.simpledemo.onap.org:6969
149 clamp.config.policy.api.userName=healthcheck
150 clamp.config.policy.api.password=zb!XztG34
151 clamp.config.policy.pap.url=http4://policy.api.simpledemo.onap.org:6969
152 clamp.config.policy.pap.userName=healthcheck
153 clamp.config.policy.pap.password=zb!XztG34
154
155 #
156 # Sdc service properties
157 clamp.config.sdc.csarFolder=/tmp/sdc-controllers
158
159 #DCAE Inventory Url Properties
160 clamp.config.dcae.inventory.url=http4://dcae.api.simpledemo.onap.org:8080
161 clamp.config.dcae.intentory.retry.interval=10000
162 clamp.config.dcae.intentory.retry.limit=5
163
164 #DCAE Deployment Url Properties
165 clamp.config.dcae.deployment.url=http4://dcae.api.simpledemo.onap.org:8188
166 clamp.config.dcae.deployment.userName=test
167 clamp.config.dcae.deployment.password=test
168
169 #Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !
170 clamp.config.security.permission.type.cl=org.onap.clamp.clds.cl
171 clamp.config.security.permission.type.cl.manage=org.onap.clamp.clds.cl.manage
172 clamp.config.security.permission.type.cl.event=org.onap.clamp.clds.cl.event
173 clamp.config.security.permission.type.filter.vf=org.onap.clamp.clds.filter.vf
174 clamp.config.security.permission.type.template=org.onap.clamp.clds.template
175 clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca
176 #This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
177 clamp.config.security.permission.instance=dev
178 clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal
179
180 #AAF related parameters
181 clamp.config.cadi.cadiLoglevel=DEBUG
182 clamp.config.cadi.cadiLatitude=10
183 clamp.config.cadi.cadiLongitude=10
184 clamp.config.cadi.aafLocateUrl=https://aaf-locate:8095
185 clamp.config.cadi.oauthTokenUrl= https://AAF_LOCATE_URL/locate/onap.org.osaaf.aaf.token:2.1/token
186 clamp.config.cadi.oauthIntrospectUrll=https://AAF_LOCATE_URL/locate/onap.org.osaaf.aaf.introspect:2.1/introspect
187 clamp.config.cadi.aafEnv=DEV
188 clamp.config.cadi.aafUrl=https://AAF_LOCATE_URL/onap.org.osaaf.aaf.service:2.1
189 clamp.config.cadi.cadiX509Issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US
190
191 ## Tosca converter
192 clamp.config.tosca.converter.json.schema.templates=classpath:/clds/tosca-converter/templates.json
193 clamp.config.tosca.converter.default.datatypes=classpath:/clds/tosca-converter/default-tosca-types.yaml
194 clamp.config.tosca.converter.dictionary.support.enabled=true
195
196 # Configuration settings for CDS
197 clamp.config.cds.url=http4://cds-blueprints-processor-http:8080
198 clamp.config.cds.userName=ccsdkapps
199 clamp.config.cds.password=ccsdkapps