diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-22 10:16:48 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-22 10:16:48 +0800 |
commit | 6aface507b6496f867744a6aa24c2abeaa798728 (patch) | |
tree | c2832797409ca216e8562de19ccd8e095c2dca78 /zte/vmanager/run.sh | |
parent | 62615575b2b7919b1eab11ad2f1a3039da43e413 (diff) |
add ssl support for ztevnfmdriver
Change-Id: I3abb73a3bf9756950008173aa9f29f285fd7db43
Issue-ID: VFC-1307
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'zte/vmanager/run.sh')
-rwxr-xr-x | zte/vmanager/run.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zte/vmanager/run.sh b/zte/vmanager/run.sh index f0f0d485..1135968e 100755 --- a/zte/vmanager/run.sh +++ b/zte/vmanager/run.sh @@ -20,7 +20,11 @@ fi # nohup python manage.py runserver 0.0.0.0:8410 > /dev/null & -nohup uwsgi --http :8410 -t 120 --module driver.wsgi --master --processes 4 & +if [ "${SSL_ENABLED}" = "true" ]; then + nohup uwsgi --https :8410,driver/pub/ssl/cert/foobar.crt,driver/pub/ssl/cert/foobar.key, -t 120 --module driver.wsgi --master --processes 4 & +else + nohup uwsgi --http :8410 -t 120 --module driver.wsgi --master --processes 4 & +fi while [ ! -f $logDir/runtime_ztevnfmdriver.log ]; do sleep 1 |