mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 04:34:28 +03:00
Allow us to configure http vs https for user_directory
This commit is contained in:
parent
4ff8486f0f
commit
9d8baa1595
2 changed files with 2 additions and 2 deletions
|
@ -49,5 +49,5 @@ class UserDirectoryConfig(Config):
|
|||
# If this is set, user search will be delegated to this ID server instead
|
||||
# of synapse performing the search itself.
|
||||
# This is an experimental API.
|
||||
# defer_to_id_server: id.example.com
|
||||
# defer_to_id_server: https://id.example.com
|
||||
"""
|
||||
|
|
|
@ -66,7 +66,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
|
||||
if self.hs.config.user_directory_defer_to_id_server:
|
||||
signed_body = sign_json(body, self.hs.hostname, self.hs.config.signing_key[0])
|
||||
url = "http://%s/_matrix/identity/api/v1/user_directory/search" % (
|
||||
url = "%s/_matrix/identity/api/v1/user_directory/search" % (
|
||||
self.hs.config.user_directory_defer_to_id_server,
|
||||
)
|
||||
resp = yield self.http_client.post_json_get_json(url, signed_body)
|
||||
|
|
Loading…
Reference in a new issue