diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index 2901e5bb7f0..7b0e17b2958 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -663,8 +663,12 @@ class Module(MgrModule): return dict(result) + server_addr = self.get_config('server_addr') or '127.0.0.1' + server_port = self.get_config('server_port') or '7000' + log.info("server_addr: %s server_port: %s" % (server_addr, server_port)) cherrypy.config.update({ - 'server.socket_port': 7000, + 'server.socket_host': server_addr, + 'server.socket_port': int(server_port), 'engine.autoreload.on': False })