mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 01:36:05 -04:00
Allow specifying a directory to host a web client from
This commit is contained in:
parent
571ac105e6
commit
86cef6a91b
2 changed files with 6 additions and 3 deletions
|
@ -97,9 +97,11 @@ class SynapseHomeServer(HomeServer):
|
|||
return JsonResource(self)
|
||||
|
||||
def build_resource_for_web_client(self):
|
||||
import syweb
|
||||
syweb_path = os.path.dirname(syweb.__file__)
|
||||
webclient_path = os.path.join(syweb_path, "webclient")
|
||||
webclient_path = self.get_config().web_client_location
|
||||
if not webclient_path:
|
||||
import syweb
|
||||
syweb_path = os.path.dirname(syweb.__file__)
|
||||
webclient_path = os.path.join(syweb_path, "webclient")
|
||||
# GZip is disabled here due to
|
||||
# https://twistedmatrix.com/trac/ticket/7678
|
||||
# (It can stay enabled for the API resources: they call
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue