mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Revert "Remove outbound proxy, http.ProxyFromEnvironment is now used (#2191)"
This reverts commit f51e2a99e9.
This commit is contained in:
parent
234ed603e6
commit
a62941cc80
|
|
@ -31,6 +31,7 @@ type FederationAPI struct {
|
|||
// open for reuse for future requests. Connections will be closed quicker
|
||||
// but we may spend more time on TLS handshakes instead.
|
||||
DisableHTTPKeepalives bool `yaml:"disable_http_keepalives"`
|
||||
Proxy Proxy `yaml:"proxy_outbound"`
|
||||
|
||||
// Perspective keyservers, to use as a backup when direct key fetch
|
||||
// requests don't succeed
|
||||
|
|
@ -65,6 +66,8 @@ func (c *FederationAPI) Defaults(opts DefaultOpts) {
|
|||
c.Database.ConnectionString = "file:federationapi.db"
|
||||
}
|
||||
}
|
||||
|
||||
c.Proxy.Defaults()
|
||||
}
|
||||
|
||||
func (c *FederationAPI) Verify(configErrs *ConfigErrors) {
|
||||
|
|
|
|||
|
|
@ -103,6 +103,11 @@ client_api:
|
|||
federation_api:
|
||||
database:
|
||||
connection_string: file:federationapi.db
|
||||
proxy_outbound:
|
||||
enabled: false
|
||||
protocol: http
|
||||
host: localhost
|
||||
port: 8080
|
||||
key_server:
|
||||
database:
|
||||
connection_string: file:keyserver.db
|
||||
|
|
|
|||
Loading…
Reference in a new issue