From c37fdfb09161eb11ae9662ff63d52e1a50fb0e97 Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Fri, 8 Mar 2019 03:52:45 +0000 Subject: 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 --- windriver/run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'windriver/run.sh') 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 -- cgit 1.2.3-korg