-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support HTTPS_PROXY env var for outbound proxy config #4198
Comments
what proxy global variable? |
it's the unix global variable (environment variable) https_proxy use by the system. |
Thx |
May be the best way is to use httplib2shim, but i don't know how to do that. |
same issue here. I installed a test server on a vm where I don't have a public IP so I used squid to proxy synapse. |
Notes for anyone implementing this: While twisted provides /some/ proxy support as part of |
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
fixed by #6239 |
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
Hi, I see that this was marked closed, but the linked commit specifically disavows using the proxy for outbound federation. Is there a reason for that? How would I achieve federation in a controlled network environment where all outbound traffic must be proxied? |
@abliss Probably worth filing a new issue (if there isn't one already). |
Description
When using homeserver behind a corporate proxy, synapse python don't use proxy global variable.
So when put request to matrix.org are send there's a timeout connection.
INFO - httppush.process-16 - Error sending request to POST https://matrix.org/_matrix/push/v1/notify: TimeoutError
2018-11-18 09:26:55,016 - synapse.push.httppusher - 339 - WARNING - httppush.process-16 - Failed to push event $15424483970iGDrt:synapse.mycompagny.fr to @john.doe:synapse.mycompagny.fr/im.vector.app.ios.voip.prod/aQ/0cQk1HFOF2GkU/8Z9k66ZgImmNU4gVFU431tYsLc=
Traceback (most recent call last):
File "/root/.synapse/lib/python2.7/site-packages/synapse/push/httppusher.py", line 335, in dispatch_push
resp = yield self.http_client.post_json_get_json(self.url, notification_dict)
TimeoutError: User timeout caused connection failure.
.
The text was updated successfully, but these errors were encountered: