aboutsummaryrefslogtreecommitdiff
path: root/dendrite-config.yaml
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-01-22 14:16:59 +0000
committerGitHub <noreply@github.com>2021-01-22 14:16:59 +0000
commit805a74892efcd18fdcaa14a68a1ba7dfa9486172 (patch)
tree1c7623674910540be5162fe0ec0cf49d7f193f9f /dendrite-config.yaml
parent745ee20b9049dd9bdfc1c7e84cb2a4aa4fd66f4f (diff)
DNS caching (#1728)
* Allow configuring DNS cache * Update sample configs * Fix build errors * Fix time resolution * Default 5m * In seconds * Use WithDNScache * Correct field name * Update go.mod/go.sum to matrix-org/gomatrixserverlib#251
Diffstat (limited to 'dendrite-config.yaml')
-rw-r--r--dendrite-config.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/dendrite-config.yaml b/dendrite-config.yaml
index 978b1800..a3d1065d 100644
--- a/dendrite-config.yaml
+++ b/dendrite-config.yaml
@@ -103,6 +103,17 @@ global:
username: metrics
password: metrics
+ # DNS cache options. The DNS cache may reduce the load on DNS servers
+ # if there is no local caching resolver available for use.
+ dns_cache:
+ # Whether or not the DNS cache is enabled.
+ enabled: false
+
+ # Maximum number of entries to hold in the DNS cache, and
+ # for how long those items should be considered valid in seconds.
+ cache_size: 256
+ cache_lifetime: 300
+
# Configuration for the Appservice API.
app_service_api:
internal_api: