matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.75k stars 676 forks source link

Support HTTP Proxy #2183

Closed qwerzl closed 2 years ago

qwerzl commented 2 years ago

Description:

Please support HTTP proxy. I’ve tried proxychains4 and setting the environment variable, none of them worked. Whenever the server connects to matrix.org, it just gives out an i/o timeout.

S7evinK commented 2 years ago

There's a proxy_outbound section for the federation api, did you try that? https://github.com/matrix-org/dendrite/blob/5106cc807cf22a95420b24f6bfdd5c9ac8aa06de/dendrite-config.yaml#L207-L212

Edit: Looks like we don't ever use the config for proxies.

neilalexander commented 2 years ago

Fixed in #2191 — Dendrite will now use the http_proxy, https_proxy etc variables from the environment.