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)
pull/3476/head
aphrodite 2018-06-04 14:24:28 +00:00 committed by Richard van der Hoff
parent 463e7c2709
commit 9e38981ae4
1 changed files with 6 additions and 1 deletions

View File

@ -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",