summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-08-04 22:07:04 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-08-04 22:07:04 +0100
commit42c6823827a12cdb4374bc6e64d32d4ce4f526ec (patch)
treea0dbc9edfea7853ee1631a740a2b3ba085660841 /synapse/config
parentpy3 fix (diff)
downloadsynapse-42c6823827a12cdb4374bc6e64d32d4ce4f526ec.tar.xz
disable HS from config
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 8fd2319759..2e1e2f5961 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -75,6 +75,10 @@ class ServerConfig(Config):
                 "max_mau_value", 0,
             )
 
+        # Options to disable HS
+        self.hs_disabled = config.get("hs_disabled", False)
+        self.hs_disabled_message = config.get("hs_disabled_message", "")
+
         # FIXME: federation_domain_whitelist needs sytests
         self.federation_domain_whitelist = None
         federation_domain_whitelist = config.get(