aboutsummaryrefslogtreecommitdiff
path: root/setup/config
diff options
context:
space:
mode:
authorRyan W <twentybitdev@gmail.com>2021-09-10 10:05:31 +0100
committerGitHub <noreply@github.com>2021-09-10 10:05:31 +0100
commit1cd4d50181585d664ca7337e3f48ea00a1b1f5c6 (patch)
tree516d497bb181eb03388e692ea4407747e93f12bf /setup/config
parenta624eab309ee6ee7b3540dfba884a42c9a4f4ad9 (diff)
Added .well-known/matrix/server endpoint (#1988)
* Added .well-known/matrix/server endpoint Signed-off-by: Ryan Whittington <twentybitdev@gmail.com> * Replaced tabs with spaces Signed-off-by: Ryan Whittington <twentybitdev@gmail.com>
Diffstat (limited to 'setup/config')
-rw-r--r--setup/config/config_global.go3
-rw-r--r--setup/config/config_test.go1
2 files changed, 4 insertions, 0 deletions
diff --git a/setup/config/config_global.go b/setup/config/config_global.go
index 90a92f2b..d5d9f7f5 100644
--- a/setup/config/config_global.go
+++ b/setup/config/config_global.go
@@ -34,6 +34,9 @@ type Global struct {
// Defaults to 24 hours.
KeyValidityPeriod time.Duration `yaml:"key_validity_period"`
+ // The server name to delegate server-server communications to, with optional port
+ WellKnownServerName string `yaml:"well_known_server_name"`
+
// Disables federation. Dendrite will not be able to make any outbound HTTP requests
// to other servers and the federation API will not be exposed.
DisableFederation bool `yaml:"disable_federation"`
diff --git a/setup/config/config_test.go b/setup/config/config_test.go
index 4107b684..5c51a363 100644
--- a/setup/config/config_test.go
+++ b/setup/config/config_test.go
@@ -39,6 +39,7 @@ global:
private_key: matrix_key.pem
key_id: ed25519:auto
key_validity_period: 168h0m0s
+ well_known_server_name: "localhost:443"
trusted_third_party_id_servers:
- matrix.org
- vector.im