diff options
-rw-r--r-- | multivimbroker/multivimbroker/api_v2/service.py | 4 | ||||
-rw-r--r-- | multivimbroker/multivimbroker/pub/config/config.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/multivimbroker/multivimbroker/api_v2/service.py b/multivimbroker/multivimbroker/api_v2/service.py index 228cc63..d080068 100644 --- a/multivimbroker/multivimbroker/api_v2/service.py +++ b/multivimbroker/multivimbroker/api_v2/service.py @@ -16,6 +16,7 @@ from oslo_service import service from oslo_service import wsgi from multivimbroker.api_v2 import app +from multivimbroker.pub.config import config as mc_cfg CONF = cfg.CONF @@ -33,9 +34,8 @@ class WSGIService(service.ServiceBase): CONF, "multivimbroker", self.app, - # TODO(xiaohhui): these should be configurable. host="0.0.0.0", - port="9002", + port=mc_cfg.API_SERVER_PORT, use_ssl=False ) diff --git a/multivimbroker/multivimbroker/pub/config/config.py b/multivimbroker/multivimbroker/pub/config/config.py index 192c743..727b0cc 100644 --- a/multivimbroker/multivimbroker/pub/config/config.py +++ b/multivimbroker/multivimbroker/pub/config/config.py @@ -36,3 +36,6 @@ FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST", # [IMAGE LOCAL PATH] ROOT_PATH = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +# [Local Config] +API_SERVER_PORT = 9001 |