server: Add a config option to set the SSO helper listening port.
This commit is contained in:
parent
f5f08cba6f
commit
355fa95533
2 changed files with 52 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue