mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-08 07:15:21 -05:00
Allow specifying a directory to host a web client from
This commit is contained in:
parent
571ac105e6
commit
86cef6a91b
@ -97,6 +97,8 @@ class SynapseHomeServer(HomeServer):
|
|||||||
return JsonResource(self)
|
return JsonResource(self)
|
||||||
|
|
||||||
def build_resource_for_web_client(self):
|
def build_resource_for_web_client(self):
|
||||||
|
webclient_path = self.get_config().web_client_location
|
||||||
|
if not webclient_path:
|
||||||
import syweb
|
import syweb
|
||||||
syweb_path = os.path.dirname(syweb.__file__)
|
syweb_path = os.path.dirname(syweb.__file__)
|
||||||
webclient_path = os.path.join(syweb_path, "webclient")
|
webclient_path = os.path.join(syweb_path, "webclient")
|
||||||
|
@ -22,6 +22,7 @@ class ServerConfig(Config):
|
|||||||
self.server_name = config["server_name"]
|
self.server_name = config["server_name"]
|
||||||
self.pid_file = self.abspath(config.get("pid_file"))
|
self.pid_file = self.abspath(config.get("pid_file"))
|
||||||
self.web_client = config["web_client"]
|
self.web_client = config["web_client"]
|
||||||
|
self.web_client_location = config.get("web_client_location", None)
|
||||||
self.soft_file_limit = config["soft_file_limit"]
|
self.soft_file_limit = config["soft_file_limit"]
|
||||||
self.daemonize = config.get("daemonize")
|
self.daemonize = config.get("daemonize")
|
||||||
self.print_pidfile = config.get("print_pidfile")
|
self.print_pidfile = config.get("print_pidfile")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user