Adds support for adding a proxy to the HTTP Client from the config (#1055)

* adds support for defining an proxy for the http client within the config

* alphabetize imports

* goimports

* comments
This commit is contained in:
Aiden McClelland 2020-06-02 14:02:24 -06:00 committed by GitHub
parent dc3338d1f2
commit 17c92ad10e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -268,6 +268,16 @@ type Dendrite struct {
// The config for logging informations. Each hook will be added to logrus.
Logging []LogrusHook `yaml:"logging"`
// The config for setting a proxy to use for server->server requests
Proxy *struct {
// The protocol for the proxy (http / https / socks5)
Protocol string `yaml:"protocol"`
// The host where the proxy is listening
Host string `yaml:"host"`
// The port on which the proxy is listening
Port uint16 `yaml:"port"`
} `yaml:"proxy"`
// Any information derived from the configuration options for later use.
Derived struct {
Registration struct {