diff options
author | ilanap <ilanap@amdocs.com> | 2019-11-18 13:38:23 +0200 |
---|---|---|
committer | Oren Kleks <oren.kleks@amdocs.com> | 2019-11-20 09:17:43 +0000 |
commit | 820f4ec65a28ed822d4205b05ac6fbbd910a46cc (patch) | |
tree | 9af0eb05005a9ebd00abbdb1e6388570c05e1cf0 /workflow-designer-be/docker/startup.sh | |
parent | cc074920eeb217ef645a5bdc658eb7af3651a343 (diff) |
Changes for backend to support SSL
Changes to support starting in https mode and changes to support making a secured call to the SDC backend
Issue-ID: SDC-2405
Signed-off-by: ilanap <ilanap@amdocs.com>
Change-Id: I0588484fdcb0903934814906672f4fc9a76eca2c
Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'workflow-designer-be/docker/startup.sh')
-rw-r--r-- | workflow-designer-be/docker/startup.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/workflow-designer-be/docker/startup.sh b/workflow-designer-be/docker/startup.sh new file mode 100644 index 00000000..bc1d6463 --- /dev/null +++ b/workflow-designer-be/docker/startup.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +HTTPS_ENABLED=${SERVER_SSL_ENABLED:-"false"} +if [ "$HTTPS_ENABLED" = "true" ] +then + KEYSTORE=${SERVER_SSL_KEYSTORE_PATH} + if [ -f "$KEYSTORE" ]; then + echo "$KEYSTORE exist" + else + echo "Copying default keystore" + KEYSTORE_DIR=${KEYSTORE%/*} + mkdir -p $KEYSTORE_DIR + cp /keystore $KEYSTORE_DIR + chmod 755 $KEYSTORE + fi + + TRUSTSTORE=${SERVER_SSL_TRUSTSTORE_PATH} + if [ -f "$TRUSTSTORE" ]; then + echo "$TRUSTSTORE exist" + else + echo "Copying default truststore" + TRUSTSTORE_DIR=${TRUSTSTORE%/*} + mkdir -p $TRUSTSTORE_DIR + cp /truststore $TRUSTSTORE_DIR + chmod 755 $TRUSTSTORE + fi +fi +java ${JAVA_OPTIONS} -jar /app.jar ${SPRING_BOOT_OPTIONS}
\ No newline at end of file |