summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-07-08 17:51:56 +0100
committerGitHub <noreply@github.com>2020-07-08 17:51:56 +0100
commit67593b17287ae5e412c3d30db64d006d3b55349b (patch)
tree773814cef2383b03bed077e207dbabe25d843d80 /synapse/server.py
parentRevert "Update the installation docs on apt-transport-https (#7801)" (diff)
downloadsynapse-67593b17287ae5e412c3d30db64d006d3b55349b.tar.xz
Add `HomeServer.signing_key` property (#7805)
... instead of duplicating `config.signing_key[0]` everywhere
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index fe94836a2c..6acce2e23f 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -232,6 +232,8 @@ class HomeServer(object):
 
         self._reactor = reactor
         self.hostname = hostname
+        # the key we use to sign events and requests
+        self.signing_key = config.key.signing_key[0]
         self.config = config
         self._building = {}
         self._listening_services = []