summaryrefslogtreecommitdiffstats
path: root/vio/run.sh
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2019-04-02 11:33:47 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2019-04-02 11:36:28 +0800
commit06ee0bf69c4cc48fa1017218611f1a3194137d47 (patch)
treee43ab5a57cf01e506b231910a8df000800beeac0 /vio/run.sh
parent04ad05f0302fa1e059b3c3ab3470759dc333e33e (diff)
Enable https support for vio
Enable https support for vio plugin Change-Id: I24cd39d37cd85c220fd0edd2ddbbbc01678c5616 Issue-ID: MULTICLOUD-560 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'vio/run.sh')
-rwxr-xr-xvio/run.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/vio/run.sh b/vio/run.sh
index 8585bc2..0a19cd5 100755
--- a/vio/run.sh
+++ b/vio/run.sh
@@ -32,7 +32,12 @@ then
python multivimbroker/scripts/api.py
else
# nohup python manage.py runserver 0.0.0.0:9004 2>&1 &
- nohup uwsgi --http :9004 --module vio.wsgi --master --processes 4 &
+ if [ ${SSL_ENABLED} = "true" ]; then
+ nohup uwsgi --https :9004,/opt/vio/cert.crt,/opt/vio/cert.key --module vio.wsgi --master --processes 4 &
+
+ else
+ nohup uwsgi --http :9004 --module vio.wsgi --master --processes 4 &
+ fi
nohup python -m vio.event_listener.server 2>&1 &
while [ ! -f $logDir/vio.log ]; do