summaryrefslogtreecommitdiffstats
path: root/windriver/run.sh
diff options
context:
space:
mode:
authorXiaohua Zhang <xiaohua.zhang@windriver.com>2019-03-08 03:52:45 +0000
committerXiaohua Zhang <xiaohua.zhang@windriver.com>2019-03-08 03:52:45 +0000
commitc37fdfb09161eb11ae9662ff63d52e1a50fb0e97 (patch)
tree1b8e4b8d9065f71a2f81f06136a11725bd4d8a5b /windriver/run.sh
parentc67c38021c18377a65a7d054aa280de5baa64d91 (diff)
Add https support for multicloud windriver plugin
The https endpoint can be enabled by setting env: SSL_ENABLED=true Change-Id: I4a081bc47bf7be62ddc87407344d2cd580bba5b7 Issue-ID: MULTICLOUD-519 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
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