summaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/docker/startup.sh
blob: 359e6acaa804026f5177e8ee284f903cc3b1c5fb (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
#!/bin/sh

# adding support for https
HTTPS_ENABLED=${IS_HTTPS:-"false"}

if [ "$HTTPS_ENABLED" = "true" ]
then
    echo "enable ssl"
    if [ -z "$KEYSTORE_PATH" ]; then
        java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl \
            jetty.sslContext.keyStorePath=$KEYSTORE_PATH \
            jetty.sslContext.keyStorePassword=$KEYSTORE_PASSWORD \
            jetty.sslContext.keyStoreType=$KEYSTORE_TYPE \
            jetty.sslContext.trustStorePath=$TRUSTSTORE_PATH \
            jetty.sslContext.trustStorePassword=$TRUSTSTORE_PASSWORD \
            jetty.sslContext.trustStoreType=$TRUSTSTORE_TYPE \
     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