aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/docker/startup.sh
blob: 297be0ded6cfb7d216e33ffcef2403065438e535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# adding support for https
HTTPS_ENABLED=${IS_HTTPS:-"false"}

if [ "$HTTPS_ENABLED" = "true" ]; then
    echo "enable ssl"
    if [ -n "$KEYSTORE_PATH" ]; then

        keystore_pass="!ppJ.JvWn0hGh)oVF]([Kv)^"
        truststore_pass="].][xgtze]hBhz*wy]}m#lf*"

        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.trustStorePath=$TRUSTSTORE_PATH \
            jetty.sslContext.trustStorePassword=${TRUSTSTORE_PASS:-$truststore_pass} 
     else
         echo "Using jetty default SSL"
         java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl
     fi
else
    echo "no ssl required"
fi

java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar