blob: 6b28cf7ef3f4c33cd732d8cef4d9ac9424eb9780 [file] [log] [blame]
xg353y7e836e12018-06-06 15:50:33 +02001###
2# ============LICENSE_START=======================================================
3# ONAP CLAMP
4# ================================================================================
sebdet687b8de2019-08-26 14:29:11 -07005# Copyright (C) 2017-2019 AT&T Intellectual Property. All rights
xg353y7e836e12018-06-06 15:50:33 +02006# reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END============================================
20# ===================================================================
21#
22###
23
xg353y7e836e12018-06-06 15:50:33 +020024### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time).
25### (See below for the parameter 'server.http.port' if you want to have both enabled)
26### To have only HTTP, keep the lines server.ssl.* commented
27### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location
28### server.port=8080
29### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')
30#server.ssl.key-store=file:/tmp/mykey.jks
31#server.ssl.key-store-password=pass
32#server.ssl.key-password=pass
33
34### In order to be user friendly when HTTPS is enabled,
35### you can add another HTTP port that will be automatically redirected to HTTPS
36### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...)
37#server.http-to-https-redirection.port=8090
38
39### HTTP Example:
40###--------------
41### server.port=8080
42
43### HTTPS Example:
44### --------------
45### server.port=8443
46### server.ssl.key-store=file:/tmp/mykey.jks
47### server.ssl.key-store-password=mypass
48### server.ssl.key-password=mypass
sebdet687b8de2019-08-26 14:29:11 -070049server.port=8443
50## Config part for Server certificates
51# Can be a classpath parameter instead of file:/
52server.ssl.key-store=classpath:/clds/aaf/org.onap.clamp.p12
xuegao1ebfe6b2019-11-28 15:13:18 +010053server.ssl.key-store-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
54server.ssl.key-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
sebdet687b8de2019-08-26 14:29:11 -070055server.ssl.key-store-type=PKCS12
56server.ssl.key-alias=clamp@clamp.onap.org
57
58## Config part for Client certificates
59server.ssl.client-auth=want
60server.ssl.trust-store=classpath:/clds/aaf/truststoreONAPall.jks
xuegao1ebfe6b2019-11-28 15:13:18 +010061server.ssl.trust-store-password=enc:iDnPBBLq_EMidXlMa1FEuBR8TZzYxrCg66vq_XfLHdJ
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
65clamp.config.keyFile=classpath:/clds/aaf/org.onap.clamp.keyfile
sebdet687b8de2019-08-26 14:29:11 -070066
67#server.http-to-https-redirection.port=8080
xg353y7e836e12018-06-06 15:50:33 +020068
xg353y054f1d12018-07-23 16:02:28 +020069server.servlet.context-path=/
xg353y7e836e12018-06-06 15:50:33 +020070#Modified engine-rest applicationpath
sebdetf01d3e82020-09-28 15:26:42 +020071spring.profiles.active=clamp-default,clamp-default-user,clamp-sdc-controller,clamp-ssl-config,clamp-policy-controller,default-dictionary-elements
sebdetc2bcf2a2019-02-22 08:16:26 +010072spring.http.converters.preferred-json-mapper=gson
xg353y7e836e12018-06-06 15:50:33 +020073
74#The max number of active threads in this pool
75server.tomcat.max-threads=200
76#The minimum number of threads always kept alive
77server.tomcat.min-Spare-Threads=25
78#The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
79server.tomcat.max-idle-time=60000
80
81#Servlet context parameters
82server.context_parameters.p-name=value #context parameter with p-name as key and value as value.
83
sebdet580141f2020-04-01 00:00:37 +020084camel.springboot.tracing=true
xg353y7e836e12018-06-06 15:50:33 +020085camel.springboot.consumer-template-cache-size=1000
86camel.springboot.producer-template-cache-size=1000
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +020087camel.springboot.jmx-enabled=true
xg353y7e836e12018-06-06 15:50:33 +020088camel.defaultthreadpool.poolsize=10
89camel.defaultthreadpool.maxpoolsize=20
90camel.defaultthreadpool.maxqueuesize=1000
91camel.defaultthreadpool.keepaliveTime=60
92camel.defaultthreadpool.rejectpolicy=CallerRuns
93#camel.springboot.xmlRoutes = false
xg353y054f1d12018-07-23 16:02:28 +020094camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml
95camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
xg353y7e836e12018-06-06 15:50:33 +020096#camel.springboot.typeConversion = false
97
98#clds datasource connection details
JulienBe2a7317e2020-04-21 13:44:13 +020099spring.datasource.driverClassName=org.mariadb.jdbc.Driver
100spring.datasource.url=jdbc:mariadb:sequential://localhost:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
101spring.datasource.username=clds
102spring.datasource.password=sidnnd83K
103spring.datasource.validationQuery=SELECT 1
104spring.datasource.validationQueryTimeout=20000
105spring.datasource.validationInterval=30000
106spring.datasource.testWhileIdle = true
107spring.datasource.minIdle = 0
108spring.datasource.initialSize=0
xg353y7e836e12018-06-06 15:50:33 +0200109# Automatically test whether a connection provided is good or not
JulienBe2a7317e2020-04-21 13:44:13 +0200110spring.datasource.testOnBorrow=true
111spring.datasource.ignoreExceptionOnPreLoad=true
sebdetc2bcf2a2019-02-22 08:16:26 +0100112# control the sql db initialization (from schema.sql and data.sql)
JulienBe2a7317e2020-04-21 13:44:13 +0200113spring.datasource..initialize=false
sebdetc2bcf2a2019-02-22 08:16:26 +0100114
115spring.jpa.properties.javax.persistence.schema-generation.database.action=none
116s#pring.jpa.properties.javax.persistence.schema-generation.create-source=metadata
117#spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
118#spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql
119# disable Hibernate DDL generation because the schema will be generated from a sql script
120spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
121spring.jpa.properties.hibernate.ddl-auto=validate
122spring.jpa.properties.hibernate.hbm2ddl.delimiter=;
123spring.jpa.properties.hibernate.format_sql=true
124spring.jpa.properties.hibernate.use-new-id-generator-mappings=true
125
126# Whether to enable logging of SQL statements.
sebdet7fc07392019-04-10 15:27:46 +0200127#spring.jpa.show-sql=true
xg353y7e836e12018-06-06 15:50:33 +0200128
129#Async Executor default Parameters
130async.core.pool.size=10
131async.max.pool.size=20
132async.queue.capacity=500
133
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200134#For EELF logback file
sebdet32946442019-01-14 14:16:51 +0100135#clamp.config.logback.path=
sebdet86bf8ee2018-09-05 18:07:57 +0200136clamp.config.logback.filename=logback-default.xml
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200137#The log folder that will be used in logback.xml file
sebdet8ad29212018-12-14 11:56:22 +0100138clamp.config.log.path=/var/log/onap/clamp
xg353y7e836e12018-06-06 15:50:33 +0200139clamp.config.files.systemProperties=classpath:/system.properties
140clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
141clamp.config.files.globalProperties=classpath:/clds/templates/globalProperties.json
142clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
143
xg353y7e836e12018-06-06 15:50:33 +0200144#
145# Configuration Settings for Policy Engine Components
xuegao58c7c972019-09-26 13:29:10 +0200146clamp.config.policy.api.url=http4://localhost:8085
sebdetaf8b7d72019-04-26 16:34:14 +0200147clamp.config.policy.api.userName=healthcheck
148clamp.config.policy.api.password=zb!XztG34
xuegao58c7c972019-09-26 13:29:10 +0200149clamp.config.policy.pap.url=http4://localhost:8085
sebdetaf8b7d72019-04-26 16:34:14 +0200150clamp.config.policy.pap.userName=healthcheck
151clamp.config.policy.pap.password=zb!XztG34
sebdet687b8de2019-08-26 14:29:11 -0700152
xg353y7e836e12018-06-06 15:50:33 +0200153#
154# Sdc service properties
xg353y7e836e12018-06-06 15:50:33 +0200155clamp.config.sdc.csarFolder = /tmp/sdc-controllers
xg353y7e836e12018-06-06 15:50:33 +0200156
157#DCAE Inventory Url Properties
sebdet74303b72019-10-08 17:53:08 +0200158clamp.config.dcae.inventory.url=http4://localhost:8085
xg353y7e836e12018-06-06 15:50:33 +0200159clamp.config.dcae.intentory.retry.interval=10000
sebdet19ab2332018-09-12 18:52:39 +0200160clamp.config.dcae.intentory.retry.limit=5
xg353y7e836e12018-06-06 15:50:33 +0200161
xg353y39d82de2019-04-26 13:26:25 +0200162#DCAE Deployment Url Properties
xuegao58c7c972019-09-26 13:29:10 +0200163clamp.config.dcae.deployment.url=http4://localhost:8085
xg353y39d82de2019-04-26 13:26:25 +0200164clamp.config.dcae.deployment.userName=test
165clamp.config.dcae.deployment.password=test
166
xg353y7e836e12018-06-06 15:50:33 +0200167#Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !
168clamp.config.security.permission.type.cl=org.onap.clamp.clds.cl
169clamp.config.security.permission.type.cl.manage=org.onap.clamp.clds.cl.manage
xg353ya9be95f2019-03-11 13:47:22 +0100170clamp.config.security.permission.type.cl.event=org.onap.clamp.clds.cl.event
xg353y7e836e12018-06-06 15:50:33 +0200171clamp.config.security.permission.type.filter.vf=org.onap.clamp.clds.filter.vf
172clamp.config.security.permission.type.template=org.onap.clamp.clds.template
sebdet86bf8ee2018-09-05 18:07:57 +0200173clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca
xg353y7e836e12018-06-06 15:50:33 +0200174#This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
175clamp.config.security.permission.instance=dev
sebdetbf8f0ab2020-10-15 11:40:17 +0200176clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal, org.onap.aaf.cadi.principal.CachedBasicPrincipal
sebdet3af93472020-03-09 16:15:19 -0700177
178## Tosca converter
sebdet723de7f2020-03-12 14:38:07 -0700179clamp.config.tosca.converter.json.schema.templates=classpath:/clds/tosca-converter/templates.json
180clamp.config.tosca.converter.default.datatypes=classpath:/clds/tosca-converter/default-tosca-types.yaml
181clamp.config.tosca.converter.dictionary.support.enabled=true
sebdet8604d372020-03-10 02:44:53 -0700182
183# Configuration settings for CDS
sebdeteb4e4ca2020-04-01 16:38:29 +0200184clamp.config.cds.url=http4://cds-blueprints-processor-http:8080
sebdet8604d372020-03-10 02:44:53 -0700185clamp.config.cds.userName=ccsdkapps
186clamp.config.cds.password=ccsdkapps