Code Review
/
modeling
/
etsicatalog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
upgrade code to add HTTP/HTTPS protocol registration switch to MSB
[modeling/etsicatalog.git]
/
catalog
/
pub
/
config
/
config.py
diff --git
a/catalog/pub/config/config.py
b/catalog/pub/config/config.py
index
2b8f1a0
..
c1d4695
100644
(file)
--- a/
catalog/pub/config/config.py
+++ b/
catalog/pub/config/config.py
@@
-32,10
+32,16
@@
FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST",
# [register]
REG_TO_MSB_WHEN_START = True
# [register]
REG_TO_MSB_WHEN_START = True
+SSL_ENABLED = "true"
REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
+if SSL_ENABLED == "true":
+ enable_ssl = "true"
+else:
+ enable_ssl = "false"
REG_TO_MSB_REG_PARAM = [{
"serviceName": "catalog",
"version": "v1",
REG_TO_MSB_REG_PARAM = [{
"serviceName": "catalog",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/catalog/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/catalog/v1",
"protocol": "REST",
"visualRange": "1",
@@
-47,6
+53,7
@@
REG_TO_MSB_REG_PARAM = [{
}, {
"serviceName": "nsd",
"version": "v1",
}, {
"serviceName": "nsd",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/nsd/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/nsd/v1",
"protocol": "REST",
"visualRange": "1",
@@
-58,6
+65,7
@@
REG_TO_MSB_REG_PARAM = [{
}, {
"serviceName": "vnfpkgm",
"version": "v1",
}, {
"serviceName": "vnfpkgm",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/vnfpkgm/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/vnfpkgm/v1",
"protocol": "REST",
"visualRange": "1",
@@
-69,6
+77,7
@@
REG_TO_MSB_REG_PARAM = [{
}, {
"serviceName": "parser",
"version": "v1",
}, {
"serviceName": "parser",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/parser/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/parser/v1",
"protocol": "REST",
"visualRange": "1",