aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/docker/startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/docker/startup.sh')
-rw-r--r--workflow-designer-ui/docker/startup.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/workflow-designer-ui/docker/startup.sh b/workflow-designer-ui/docker/startup.sh
index 431a0cda..297be0de 100644
--- a/workflow-designer-ui/docker/startup.sh
+++ b/workflow-designer-ui/docker/startup.sh
@@ -1,12 +1,10 @@
#!/bin/sh
-
# adding support for https
HTTPS_ENABLED=${IS_HTTPS:-"false"}
-if [ "$HTTPS_ENABLED" = "true" ]
-then
+if [ "$HTTPS_ENABLED" = "true" ]; then
echo "enable ssl"
- if [ -z "$KEYSTORE_PATH" ]; then
+ if [ -n "$KEYSTORE_PATH" ]; then
keystore_pass="!ppJ.JvWn0hGh)oVF]([Kv)^"
truststore_pass="].][xgtze]hBhz*wy]}m#lf*"
@@ -14,10 +12,8 @@ then
java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl \
jetty.sslContext.keyStorePath=$KEYSTORE_PATH \
jetty.sslContext.keyStorePassword=${KEYSTORE_PASS:-$keystore_pass} \
- jetty.sslContext.keyStoreType=$KEYSTORE_TYPE \
jetty.sslContext.trustStorePath=$TRUSTSTORE_PATH \
- jetty.sslContext.trustStorePassword=${TRUSTSTORE_PASS:-$truststore_pass} \
- jetty.sslContext.trustStoreType=$TRUSTSTORE_TYPE \
+ jetty.sslContext.trustStorePassword=${TRUSTSTORE_PASS:-$truststore_pass}
else
echo "Using jetty default SSL"
java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl
@@ -27,3 +23,4 @@ else
fi
java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar
+