summaryrefslogtreecommitdiffstats
path: root/starlingx/run.sh
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-04-01 09:34:30 +0800
committerHaibin Huang <haibin.huang@intel.com>2019-04-01 09:53:27 +0800
commit31a6b223d123ff9fb26a6d0fa43ad327440cd5ca (patch)
tree538a9b533aed58ac6f4cd258c4962556c131670c /starlingx/run.sh
parentb322e0914ea5210e9e71d199ed1d41b0e7adddeb (diff)
Add https support for multicloud starlingx plugin
The https endpoint can be enabled by setting env: SSL_ENABLED=true Change-Id: I2852d705d0d0c11d0b16cb568184296b9c8f25d0 Issue-ID: MULTICLOUD-535 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'starlingx/run.sh')
-rwxr-xr-xstarlingx/run.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/starlingx/run.sh b/starlingx/run.sh
index 3779728f..e7f210ac 100755
--- a/starlingx/run.sh
+++ b/starlingx/run.sh
@@ -17,6 +17,12 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid
export PYTHONPATH=lib/share
uwsgi --http :9009 --module starlingx.wsgi --master --processes 4
+if [ ${SSL_ENABLED} = "true" ]; then
+ nohup uwsgi --https :9009,starlingx/pub/ssl/cert/cert.crt,starlingx/pub/ssl/cert/cert.key --module starlingx.wsgi --master --processes 4 &
+
+else
+ nohup uwsgi --http :9009 --module starlingx.wsgi --master --processes 4 &
+
logDir="/var/log/onap/multicloud/openstack/starlingx"
if [ ! -x $logDir ]; then
mkdir -p $logDir