summaryrefslogtreecommitdiffstats
path: root/gvnfmadapter/run.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-11 14:37:52 +0800
committerYan Yang <yangyanyj@chinamobile.com>2019-04-11 06:48:09 +0000
commiteb26703e56f69bf8a018f9160de53c4ff290a8f6 (patch)
tree873fa9193d3b97804cfc0f932e1172ea7068a8fb /gvnfmadapter/run.sh
parent53a997f9ffd7cbdf49154dacaf54042344ed594a (diff)
Add https support for gvnfm
Change-Id: I36506eb50de226275862cf4e5af30fe231bc4e71 Issue-ID: VFC-1342 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'gvnfmadapter/run.sh')
-rwxr-xr-xgvnfmadapter/run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/gvnfmadapter/run.sh b/gvnfmadapter/run.sh
index 6f77c0f..fe669f5 100755
--- a/gvnfmadapter/run.sh
+++ b/gvnfmadapter/run.sh
@@ -18,7 +18,13 @@ if [ ! -x $logDir ]; then
mkdir -p $logDir
fi
-nohup python manage.py runserver 0.0.0.0:8484 > /dev/null &
+# nohup python manage.py runserver 0.0.0.0:8484 > /dev/null &
+
+if [ ${SSL_ENABLED} = "true" ]; then
+ nohup uwsgi --https :8484,driver/pub/ssl/cert/foobar.crt,driver/pub/ssl/cert/foobar.key, -t 120 --module driver.wsgi --master --processes 4 &
+else
+ nohup uwsgi --http :8484 -t 120 --module driver.wsgi --master --processes 4 &
+fi
while [ ! -f $logDir/runtime_gvnfmdriver.log ]; do
sleep 1