Add config option to change the server name. Ref #2149

This commit is contained in:
grossmj committed 2022-12-27 10:05:13 +08:00
1 parent 91b50eb5f2
commit 3e29ae4276
3 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -65,6 +65,7 @@ class Controller:
self._load_base_files()
server_config = Config.instance().settings.Server
Config.instance().listen_for_config_changes(self._update_config)
name = server_config.name
host = server_config.host
port = server_config.port
@@ -86,7 +87,7 @@ class Controller:
try:
self._local_server = await self.add_compute(
compute_id="local",
name=f"{socket.gethostname()} (controller)",
name=name,
protocol=protocol,
host=host,
console_host=console_host,