diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-01-22 14:16:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 14:16:59 +0000 |
commit | 805a74892efcd18fdcaa14a68a1ba7dfa9486172 (patch) | |
tree | 1c7623674910540be5162fe0ec0cf49d7f193f9f /build/docker | |
parent | 745ee20b9049dd9bdfc1c7e84cb2a4aa4fd66f4f (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 'build/docker')
-rw-r--r-- | build/docker/config/dendrite-config.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/docker/config/dendrite-config.yaml b/build/docker/config/dendrite-config.yaml index 94dcd992..ca59ae03 100644 --- a/build/docker/config/dendrite-config.yaml +++ b/build/docker/config/dendrite-config.yaml @@ -91,6 +91,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: |