From cd8d9c49a35247508c36f1b9e5219be6aa049dbb Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 19 May 2017 14:27:45 +0100 Subject: [PATCH] Better explain what the ValidityPeriod is --- .../matrix-org/dendrite/federationapi/config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/federationapi/config/config.go b/src/github.com/matrix-org/dendrite/federationapi/config/config.go index 8f8c94334..0e2012ca6 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/config/config.go +++ b/src/github.com/matrix-org/dendrite/federationapi/config/config.go @@ -31,6 +31,9 @@ type FederationAPI struct { KeyID gomatrixserverlib.KeyID // A list of SHA256 TLS fingerprints for this server. TLSFingerPrints []gomatrixserverlib.TLSFingerprint - // How long the keys are valid for. + // How long a remote server can cache our server key for before requesting it again. + // Increasing this number will reduce the number of requests made by remote servers + // for our key, but increases the period a compromised key will be considered valid + // by remote servers. ValidityPeriod time.Duration }