blob: b9776d044e5e9a5cb35d355a89cceb6f8f5e8840 [file] [log] [blame]
saul.gill26424502022-03-15 11:56:01 +00001###
2# ============LICENSE_START=======================================================
3# ONAP POLICY-DOCKER
4# ================================================================================
5# Copyright (C) 2022 Nordix Foundation.
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#
23###
24
25### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time).
26### (See below for the parameter 'server.http.port' if you want to have both enabled)
27### To have only HTTP, keep the lines server.ssl.* commented
28### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location
29### server.port=8080
30### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')
31#server.ssl.key-store=file:/tmp/mykey.jks
32#server.ssl.key-store-password=pass
33#server.ssl.key-password=pass
34
35### In order to be user friendly when HTTPS is enabled,
36### you can add another HTTP port that will be automatically redirected to HTTPS
37### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...)
38#server.http-to-https-redirection.port=8090
39
40### HTTP Example:
41###--------------
42### server.port=8080
43
44### HTTPS Example:
45### --------------
46### server.port=8443
liamfallonc4bd9e42022-09-08 09:56:47 +010047#server.ssl.key-store=file:/opt/policy/clamp/policy-keystore
48#server.ssl.key-store-password=enc:qWxBtY7w9h5Hl72vQKgI5G1qqyRIuBarQqMkVDHqZmd
49#server.ssl.key-password=enc:qWxBtY7w9h5Hl72vQKgI5G1qqyRIuBarQqMkVDHqZmd
50#server.ssl.key-store-type=jks
51server.port=8445
saul.gill26424502022-03-15 11:56:01 +000052## Config part for Server certificates
53# Can be a classpath parameter instead of file:/
54#server.ssl.key-store=classpath:/clds/aaf/org.onap.clamp.p12
55#server.ssl.key-store-password=enc:YZs7M6IftyPjHniTa6J7G2416hssb8qI-Av8D1b8pPS
56#server.ssl.key-password=enc:YZs7M6IftyPjHniTa6J7G2416hssb8qI-Av8D1b8pPS
57
58## Config part for Client certificates
liamfallonc4bd9e42022-09-08 09:56:47 +010059#server.ssl.client-auth=want
saul.gill26424502022-03-15 11:56:01 +000060#server.ssl.trust-store=classpath:/clds/aaf/truststoreONAPall.jks
61#server.ssl.trust-store-password=enc:iDnPBBLq_EMidXlMa1FEuBR8TZzYxrCg66vq_XfLHdJ
liamfallonc4bd9e42022-09-08 09:56:47 +010062#server.ssl.trust-store=file:/opt/policy/clamp/policy-truststore
63#server.ssl.trust-store-password=enc:qWxBtY7w9h5Hl72vQKgI5G1qqyRIuBarQqMkVDHqZmd
saul.gill26424502022-03-15 11:56:01 +000064
65# The key file used to decode the key store and trust store password
66# If not defined, the key store and trust store password will not be decrypted
67#clamp.config.keyFile=classpath:/clds/aaf/org.onap.clamp.keyfile
liamfallonc4bd9e42022-09-08 09:56:47 +010068#clamp.config.keyFile=file:/opt/policy/clamp/clamp-be-keyfile
saul.gill26424502022-03-15 11:56:01 +000069
liamfallonc4bd9e42022-09-08 09:56:47 +010070server.http-to-https-redirection.port=8080
saul.gill26424502022-03-15 11:56:01 +000071
72server.servlet.context-path=/
73#Modified engine-rest applicationpath
liamfallonc4bd9e42022-09-08 09:56:47 +010074spring.profiles.active=clamp-default,clamp-default-user,clamp-policy-controller,default-dictionary-elements
saul.gill26424502022-03-15 11:56:01 +000075spring.http.converters.preferred-json-mapper=gson
76
77#The max number of active threads in this pool
78server.tomcat.max-threads=200
79#The minimum number of threads always kept alive
80server.tomcat.min-Spare-Threads=25
81#The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads
82server.tomcat.max-idle-time=60000
83
84#Servlet context parameters
85server.context_parameters.p-name=value #context parameter with p-name as key and value as value.
86
87camel.springboot.consumer-template-cache-size=1000
88camel.springboot.producer-template-cache-size=1000
89camel.springboot.jmx-enabled=true
90camel.defaultthreadpool.poolsize=10
91camel.defaultthreadpool.maxpoolsize=20
92camel.defaultthreadpool.maxqueuesize=1000
93camel.defaultthreadpool.keepaliveTime=60
94camel.defaultthreadpool.rejectpolicy=CallerRuns
95camel.springboot.xml-routes=classpath:/clds/camel/routes/*.xml
96camel.springboot.xml-rests=classpath:/clds/camel/rest/*.xml
97camel.springboot.backlog-tracing=true
98camel.springboot.tracing=true
99
100#clds datasource connection details
101spring.datasource.driverClassName=org.mariadb.jdbc.Driver
102spring.datasource.url=jdbc:mariadb:sequential://${MARIADB_HOST}:3306/policyclamp?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
103spring.datasource.username=policy_user
104spring.datasource.password=policy_user
105spring.datasource.validationQuery=SELECT 1
106spring.datasource.validationQueryTimeout=20000
107spring.datasource.validationInterval=30000
108spring.datasource.testWhileIdle = true
109spring.datasource.minIdle = 0
110spring.datasource.initialSize=0
111# Automatically test whether a connection provided is good or not
112spring.datasource.testOnBorrow=true
113spring.datasource.ignoreExceptionOnPreLoad=true
114# control the sql db initialization (from schema.sql and data.sql)
115spring.datasource..initialize=false
116
117spring.jpa.properties.javax.persistence.schema-generation.database.action=none
118s#pring.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
122spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
123spring.jpa.properties.hibernate.ddl-auto=validate
124spring.jpa.properties.hibernate.hbm2ddl.delimiter=;
125spring.jpa.properties.hibernate.format_sql=true
126spring.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
132async.core.pool.size=10
133async.max.pool.size=20
134async.queue.capacity=500
135
136#For logback file
liamfallonc4bd9e42022-09-08 09:56:47 +0100137clamp.config.logback.path=/opt/policy/clamp/config
138clamp.config.logback.filename=logback.xml
saul.gill26424502022-03-15 11:56:01 +0000139#The log folder that will be used in logback.xml file
liamfallonc4bd9e42022-09-08 09:56:47 +0100140clamp.config.log.path=/var/log/onap/policy/clamp
saul.gill26424502022-03-15 11:56:01 +0000141clamp.config.files.systemProperties=classpath:/system.properties
142clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
143clamp.config.files.globalProperties=classpath:/clds/templates/globalProperties.json
144clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json
145
146clamp.config.httpclient.socketTimeout=60000
147clamp.config.httpclient.connectTimeout=10000
148
149#
150# Configuration Settings for Policy Engine Components
liamfallonfaac45b2022-09-01 12:05:47 +0100151clamp.config.policy.api.url=http://${POLICY_API_HOST}:6969
saul.gill26424502022-03-15 11:56:01 +0000152clamp.config.policy.api.userName=policyadmin
153clamp.config.policy.api.password=zb!XztG34
liamfallonfaac45b2022-09-01 12:05:47 +0100154clamp.config.policy.pap.url=http://${POLICY_PAP_HOST}:6969
saul.gill26424502022-03-15 11:56:01 +0000155clamp.config.policy.pap.userName=policyadmin
156clamp.config.policy.pap.password=zb!XztG34
157
158#
159# Sdc service properties
160clamp.config.sdc.csarFolder = /tmp/sdc-controllers
161
162#DCAE Inventory Url Properties
liamfallonfaac45b2022-09-01 12:05:47 +0100163clamp.config.dcae.inventory.url=http://localhost:8085
saul.gill26424502022-03-15 11:56:01 +0000164clamp.config.dcae.intentory.retry.interval=10000
165clamp.config.dcae.intentory.retry.limit=5
166
167#DCAE Deployment Url Properties
liamfallonfaac45b2022-09-01 12:05:47 +0100168clamp.config.dcae.deployment.url=http://localhost:8085
saul.gill26424502022-03-15 11:56:01 +0000169clamp.config.dcae.deployment.userName=test
170clamp.config.dcae.deployment.password=test
171
172#Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !
173clamp.config.security.permission.type.cl=org.onap.clamp.clds.cl
174clamp.config.security.permission.type.cl.manage=org.onap.clamp.clds.cl.manage
175clamp.config.security.permission.type.cl.event=org.onap.clamp.clds.cl.event
176clamp.config.security.permission.type.filter.vf=org.onap.clamp.clds.filter.vf
177clamp.config.security.permission.type.template=org.onap.clamp.clds.template
178clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca
179clamp.config.security.permission.type.policies=org.onap.clamp.clds.policies
180#This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
181clamp.config.security.permission.instance=dev
182clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal, org.onap.aaf.cadi.principal.CachedBasicPrincipal
183
184## Tosca converter
185clamp.config.tosca.converter.json.schema.templates=classpath:/clds/tosca-converter/templates.json
186clamp.config.tosca.converter.default.datatypes=classpath:/clds/tosca-converter/default-tosca-types.yaml
187clamp.config.tosca.converter.dictionary.support.enabled=true
188
189# Configuration settings for CDS
liamfallonfaac45b2022-09-01 12:05:47 +0100190clamp.config.cds.url=http://cds-blueprints-processor-http:8080
saul.gill26424502022-03-15 11:56:01 +0000191clamp.config.cds.userName=ccsdkapps
192clamp.config.cds.password=ccsdkapps
193
194# Configuration settings for ControlLoop Runtime Rest API
liamfallonfaac45b2022-09-01 12:05:47 +0100195clamp.config.acm.runtime.url=http://${RUNTIME_HOST}:6969
saul.gill26424502022-03-15 11:56:01 +0000196clamp.config.acm.runtime.userName=runtimeUser
197clamp.config.acm.runtime.password=zb!XztG34