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

Commit

Permalink
Add code to rewrite Tchap Sygnal URL
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMaul committed Feb 11, 2022
1 parent 435431a commit 7f968a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/push/httppusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def __init__(self, hs: "HomeServer", pusher_config: PusherConfig):
"'url' must have a path of '/_matrix/push/v1/notify'"
)

if pusher_config.app_id.startswith("fr.gouv"):
url = url.replace("https://matrix.org", "http://sygnal.tchap.gouv.fr")

self.url = url
self.http_client = hs.get_proxied_blacklisted_http_client()
self.data_minus_url = {}
Expand Down

0 comments on commit 7f968a3

Please sign in to comment.