mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 13:23:22 -06:00
comments
This commit is contained in:
parent
c8cf274b0d
commit
2fb1579240
|
|
@ -102,9 +102,9 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, enableHTTPAPIs
|
||||||
Host: fmt.Sprintf("%s:%d", cfg.Proxy.Host, cfg.Proxy.Port),
|
Host: fmt.Sprintf("%s:%d", cfg.Proxy.Host, cfg.Proxy.Port),
|
||||||
})}
|
})}
|
||||||
}
|
}
|
||||||
|
|
||||||
httpmux := mux.NewRouter()
|
httpmux := mux.NewRouter()
|
||||||
|
|
||||||
return &BaseDendrite{
|
return &BaseDendrite{
|
||||||
componentName: componentName,
|
componentName: componentName,
|
||||||
EnableHTTPAPIs: enableHTTPAPIs,
|
EnableHTTPAPIs: enableHTTPAPIs,
|
||||||
|
|
|
||||||
|
|
@ -268,9 +268,13 @@ type Dendrite struct {
|
||||||
// The config for logging informations. Each hook will be added to logrus.
|
// The config for logging informations. Each hook will be added to logrus.
|
||||||
Logging []LogrusHook `yaml:"logging"`
|
Logging []LogrusHook `yaml:"logging"`
|
||||||
|
|
||||||
|
// The config for setting a proxy to use for server->server requests
|
||||||
Proxy *struct {
|
Proxy *struct {
|
||||||
|
// The protocol for the proxy (http / https / socks5)
|
||||||
Protocol string `yaml:"protocol"`
|
Protocol string `yaml:"protocol"`
|
||||||
|
// The host where the proxy is listening
|
||||||
Host string `yaml:"host"`
|
Host string `yaml:"host"`
|
||||||
|
// The port on which the proxy is listening
|
||||||
Port uint16 `yaml:"port"`
|
Port uint16 `yaml:"port"`
|
||||||
} `yaml:"proxy"`
|
} `yaml:"proxy"`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue