diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-12-11 04:14:34 +1100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-12-20 11:15:52 +0000 |
commit | fd4070a85dc4ece77f2427b586c18bb1f4a04197 (patch) | |
tree | 2f10f1098e20c3a1c8d44d3bdee6da074665f7b5 /debian/patches/remove-webclient.patch | |
parent | 0.34.0rc2 (diff) | |
download | synapse-fd4070a85dc4ece77f2427b586c18bb1f4a04197.tar.xz |
import from package-debian-synapse
Diffstat (limited to 'debian/patches/remove-webclient.patch')
-rw-r--r-- | debian/patches/remove-webclient.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/remove-webclient.patch b/debian/patches/remove-webclient.patch new file mode 100644 index 0000000000..bfd2fce576 --- /dev/null +++ b/debian/patches/remove-webclient.patch @@ -0,0 +1,31 @@ +Index: package-synapse-debian/synapse/app/homeserver.py +=================================================================== +--- package-synapse-debian.orig/synapse/app/homeserver.py ++++ package-synapse-debian/synapse/app/homeserver.py +@@ -124,7 +124,7 @@ class SynapseHomeServer(HomeServer): + for res in listener_config["resources"]: + for name in res["names"]: + resources.update(self._configure_named_resource( +- name, res.get("compress", False), ++ config, name, res.get("compress", False), + )) + + additional_resources = listener_config.get("additional_resources", {}) +@@ -171,7 +171,7 @@ class SynapseHomeServer(HomeServer): + ) + logger.info("Synapse now listening on port %d", port) + +- def _configure_named_resource(self, name, compress=False): ++ def _configure_named_resource(self, config, name, compress=False): + """Build a resource map for a named resource + + Args: +@@ -235,7 +235,7 @@ class SynapseHomeServer(HomeServer): + if name in ["keys", "federation"]: + resources[SERVER_KEY_V2_PREFIX] = KeyApiV2Resource(self) + +- if name == "webclient": ++ if name == "webclient" and config.web_client: + resources[WEB_CLIENT_PREFIX] = build_resource_for_web_client(self) + + if name == "metrics" and self.get_config().enable_metrics: |