Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Send HTTP pushes direct to http-priv rather than via clouldflare
Browse files Browse the repository at this point in the history
(This is a heinous hack that ought to be made more generic and pushed back to develop)
  • Loading branch information
aphrodite authored and richvdh committed Jun 22, 2018
1 parent 463e7c2 commit 9e38981
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion synapse/push/httppusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,12 @@ def dispatch_push(self, event, tweaks, badge):
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",
Expand Down

0 comments on commit 9e38981

Please sign in to comment.