aboutsummaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-08-07 17:25:31 +0100
committerGitHub <noreply@github.com>2020-08-07 17:25:31 +0100
commit30c2325eaf85f28f438f9a3c7b703978eee66cf7 (patch)
tree5f19eff42aed9dce33dde9d3be9a0b514018326d /internal/config/config.go
parent5dd5a411195c0565b4a3340dc53e2893b92f2800 (diff)
Allow enforcing X.509 certificate validity (MSC1711) (#1249)
* Configurable X.509 certificate validation * Fix dendritejs * Update go.mod/go.sum for matrix-org/gomatrixserverlib#214 * Update sample config
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 657e804f..900d3b14 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -107,6 +107,9 @@ type Dendrite struct {
// is 2**x seconds, so 1 = 2 seconds, 2 = 4 seconds, 3 = 8 seconds, etc.
// The default value is 16 if not specified, which is circa 18 hours.
FederationMaxRetries uint32 `yaml:"federation_max_retries"`
+ // FederationDisableTLSValidation disables the validation of X.509 TLS certs
+ // on remote federation endpoints. This is not recommended in production!
+ FederationDisableTLSValidation bool `yaml:"federation_disable_tls_validation"`
} `yaml:"matrix"`
// The configuration specific to the media repostitory.