summaryrefslogtreecommitdiffstats
path: root/windriver/run.sh
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-03-08 03:01:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-08 03:01:53 +0000
commit14ccb71096f87ed46ae5897ed5ae991ef2888a19 (patch)
tree1933a66a3076474be5492ac3d8dd0de1ebe864c5 /windriver/run.sh
parent57ad556cdbda12ecce07777c812695771f1f7398 (diff)
parentc37fdfb09161eb11ae9662ff63d52e1a50fb0e97 (diff)
Merge "Add https support for multicloud windriver plugin"
Diffstat (limited to 'windriver/run.sh')
-rw-r--r--windriver/run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/windriver/run.sh b/windriver/run.sh
index 6f191d73..267d3169 100644
--- a/windriver/run.sh
+++ b/windriver/run.sh
@@ -17,7 +17,13 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid
export PYTHONPATH=lib/share
#nohup python manage.py runserver 0.0.0.0:9005 2>&1 &
-nohup uwsgi --http :9005 --module titanium_cloud.wsgi --master --processes 4 &
+
+if [ ${SSL_ENABLED} = "true" ]; then
+ nohup uwsgi --https :9005,titanium_cloud/pub/ssl/cert/cert.crt,titanium_cloud/pub/ssl/cert/cert.key --module titanium_cloud.wsgi --master --processes 4 &
+
+else
+ nohup uwsgi --http :9005 --module titanium_cloud.wsgi --master --processes 4 &
+fi
logDir="/var/log/onap/multicloud/openstack/windriver"
if [ ! -x $logDir ]; then