summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authoraphrodite <matrix@aphrodite.matrix.org>2018-06-04 14:24:28 +0000
committerRichard van der Hoff <richard@matrix.org>2018-06-22 15:58:15 +0100
commit9e38981ae47d03467a954c3c540c51b567f6e50b (patch)
tree2377ea2b3016577fb73f1280fe35182d46a72e6d /synapse/push/httppusher.py
parentLower member limiter (diff)
downloadsynapse-9e38981ae47d03467a954c3c540c51b567f6e50b.tar.xz
Send HTTP pushes direct to http-priv rather than via clouldflare
(This is a heinous hack that ought to be made more generic and pushed back to develop)
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py

index bf7ff74a1a..e0ccbfa360 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py
@@ -329,7 +329,12 @@ class HttpPusher(object): if not notification_dict: defer.returnValue([]) try: - resp = yield self.http_client.post_json_get_json(self.url, notification_dict) + url = self.url.replace( + "https://matrix.org/_matrix/push/v1/notify", + "http://http-priv.matrix.org/_matrix/push/v1/notify", + ) + + resp = yield self.http_client.post_json_get_json(url, notification_dict) except Exception: logger.warn( "Failed to push event %s to %s",