server: Add a config option to set the SSO helper listening port.

This commit is contained in:
Damir Jelić 2019-09-17 19:37:22 +02:00
parent f5f08cba6f
commit 355fa95533
2 changed files with 52 additions and 3 deletions

View file

@ -208,6 +208,15 @@ class ServerConfig(ConfigSection):
"10",
("Delay (in seconds) before trying to reconnect to server"),
),
Option(
"sso_helper_listening_port",
"integer",
"",
0,
65535,
"0",
("The port that the SSO helpers web server should listen on"),
),
]
section = W.config_search_section(config_ptr, "server")
@ -251,6 +260,10 @@ class ServerConfig(ConfigSection):
password = ConfigSection.option_property(
"password", "string", evaluate=True
)
sso_helper_listening_port = ConfigSection.option_property(
"sso_helper_listening_port",
"integer"
)
def free(self):
W.config_section_free_options(self._ptr)
@ -807,6 +820,8 @@ class MatrixServer(object):
process_args = {
"buffer_flush": "1",
"arg1": "--port",
"arg2": str(self.config.sso_helper_listening_port)
}
self.sso_hook = W.hook_process_hashtable(