diff --git a/internal/basecomponent/base.go b/internal/basecomponent/base.go index f281ca5db..0fc95e824 100644 --- a/internal/basecomponent/base.go +++ b/internal/basecomponent/base.go @@ -102,9 +102,9 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, enableHTTPAPIs Host: fmt.Sprintf("%s:%d", cfg.Proxy.Host, cfg.Proxy.Port), })} } - + httpmux := mux.NewRouter() - + return &BaseDendrite{ componentName: componentName, EnableHTTPAPIs: enableHTTPAPIs, diff --git a/internal/config/config.go b/internal/config/config.go index 8e1789980..597995855 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -268,9 +268,13 @@ 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"`