diff options
author | 2019-04-08 16:23:05 +0800 | |
---|---|---|
committer | 2019-04-08 16:23:05 +0800 | |
commit | 5dc8f722d834229c27aab4ae2e8a609db09edb0d (patch) | |
tree | e42afcd0e9db62907f059260fc47d693a0be32b4 /fcaps/run.sh | |
parent | 34fe8cbca786d59ccc2550a1f20b4b7d20b3aae7 (diff) |
Add secured https support for FCAPS
Issue-ID: MULTICLOUD-522
Change-Id: I0d08093d09a450313a2ca29372f65d794dce9502
Signed-off-by: Liexiang Yue <yueliexiang@chinamobile.com>
Diffstat (limited to 'fcaps/run.sh')
-rw-r--r-- | fcaps/run.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fcaps/run.sh b/fcaps/run.sh index 5f9c4ae7..51450029 100644 --- a/fcaps/run.sh +++ b/fcaps/run.sh @@ -21,7 +21,11 @@ export PYTHONPATH=lib/share nohup celery -A fcaps worker --concurrency=1 --loglevel=info & #nohup python manage.py runserver 0.0.0.0:9011 2>&1 & -nohup uwsgi --http :9011 --module fcaps.wsgi --master --enable-threads --processes 4 & +if [ ${SSL_ENABLED} = "true" ]; then + nohup uwsgi --https :9001,fcaps/pub/ssl/cert/cert.crt,fcaps/pub/ssl/cert/cert.key,HIGH --module fcaps.wsgi --master --enable-threads --processes 4 & +else + nohup uwsgi --http :9011 --module fcaps.wsgi --master --enable-threads --processes 4 & +fi logDir="/var/log/onap/multicloud/openstack/fcaps" if [ ! -x $logDir ]; then |