summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-standalone/src/main')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh8
-rw-r--r--rulemgt-standalone/src/main/assembly/conf/rulemgt.yml8
2 files changed, 14 insertions, 2 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index fc1d63f..f0beb56 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -70,6 +70,14 @@ if [ ! -z ${URL_JDBC} ] && [ `expr index $URL_JDBC :` != 0 ]; then
fi
echo DB_PORT=$DB_PORT
+KEY_PATH="$main_path/conf/holmes.keystore"
+KEY_PASSWORD="holmes"
+
+#HTTPS Configurations
+sed -i "s|keyStorePath:.*|keyStorePath: $KEY_PATH|" "$main_path/conf/rulemgt.yml"
+sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf/rulemgt.yml"
+
+
./bin/initDB.sh $JDBC_USERNAME $JDBC_PASSWORD $DB_NAME $DB_PORT "${URL_JDBC%:*}"
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"
diff --git a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
index 3c94fa7..b0a934b 100644
--- a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
+++ b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
@@ -9,12 +9,16 @@ apidescription: ZTE Holmes rule Management rest API
server:
type: simple
- rootPath: '/api/holmes-rule-mgmt/v1/*'
+ rootPath: '/api/holmes-rule-mgmt/v1/*'
applicationContextPath: /
adminContextPath: /admin
connector:
- type: http
+ type: https
port: 9101
+ keyStorePath: /home/holmes/conf/holmes.keystore
+ keyStorePassword: holmes
+ validateCerts: false
+ validatePeers: false
# Logging settings.
logging: