summaryrefslogtreecommitdiffstats
path: root/windriver/run.sh
diff options
context:
space:
mode:
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