diff options
Diffstat (limited to 'fcaps')
-rw-r--r-- | fcaps/docker/Dockerfile | 1 | ||||
-rw-r--r-- | fcaps/fcaps/settings.py | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/fcaps/docker/Dockerfile b/fcaps/docker/Dockerfile index 3369e5e6..06654e95 100644 --- a/fcaps/docker/Dockerfile +++ b/fcaps/docker/Dockerfile @@ -6,6 +6,7 @@ ARG HTTPS_PROXY=${HTTPS_PROXY} ENV http_proxy $HTTP_PROXY ENV https_proxy $HTTPS_PROXY +ENV MSB_PROTO "http" ENV MSB_ADDR "127.0.0.1" ENV MSB_PORT "80" ENV AAI_ADDR "aai.api.simpledemo.openecomp.org" diff --git a/fcaps/fcaps/settings.py b/fcaps/fcaps/settings.py index 7844c68f..979c1519 100644 --- a/fcaps/fcaps/settings.py +++ b/fcaps/fcaps/settings.py @@ -93,15 +93,17 @@ CACHES = { } # [MSB] +DEFAULT_MSB_PROTO = "http" +MSB_SERVICE_PROTOCOL = os.environ.get('MSB_PROTO', DEFAULT_MSB_PROTO) MSB_SERVICE_ADDR = os.environ.get('MSB_ADDR', DEFAULT_MSB_ADDR) MSB_SERVICE_PORT = os.environ.get('MSB_PORT', "80") # [Multicloud] -MULTICLOUD_PREFIX = "http://%s:%s/api/multicloud/v0" % ( - MSB_SERVICE_ADDR, MSB_SERVICE_PORT) +MULTICLOUD_PREFIX = "%s://%s:%s/api/multicloud/v0" % ( + MSB_SERVICE_PROTOCOL, MSB_SERVICE_ADDR, MSB_SERVICE_PORT) -MULTICLOUD_API_V1_PREFIX = "http://%s:%s/api/multicloud/v1" % ( - MSB_SERVICE_ADDR, MSB_SERVICE_PORT) +MULTICLOUD_API_V1_PREFIX = "%s://%s:%s/api/multicloud/v1" % ( + MSB_SERVICE_PROTOCOL, MSB_SERVICE_ADDR, MSB_SERVICE_PORT) # [A&AI] AAI_ADDR = os.environ.get('AAI_ADDR', "aai.api.simpledemo.openecomp.org") |