diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2019-04-02 11:33:47 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2019-04-02 11:36:28 +0800 |
commit | 06ee0bf69c4cc48fa1017218611f1a3194137d47 (patch) | |
tree | e43ab5a57cf01e506b231910a8df000800beeac0 /vio/run.sh | |
parent | 04ad05f0302fa1e059b3c3ab3470759dc333e33e (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-x | vio/run.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |