Skip to content

Commit 62d4bb2

Browse files
authored
Merge pull request element-hq#8832 from vector-im/jryans/default-server-name
Document and recommend `default_server_name`
2 parents ad04e8b + 2dc26b4 commit 62d4bb2

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,24 @@ config.json
116116
You can configure the app by copying `config.sample.json` to
117117
`config.json` and customising it:
118118

119-
For a good example, see https://riot.im/develop/config.json
120-
121-
1. `default_hs_url` is the default homeserver url.
122-
1. `default_is_url` is the default identity server url (this is the server used
123-
for verifying third party identifiers like email addresses). If this is blank,
124-
registering with an email address, adding an email address to your account,
125-
or inviting users via email address will not work. Matrix identity servers are
126-
very simple web services which map third party identifiers (currently only email
127-
addresses) to matrix IDs: see http://matrix.org/docs/spec/identity_service/unstable.html
128-
for more details. Currently the only public matrix identity servers are https://matrix.org
129-
and https://vector.im. In future identity servers will be decentralised.
119+
For a good example, see https://riot.im/develop/config.json.
120+
121+
1. `default_server_name` sets the default server name to use for authentication.
122+
This will trigger Riot to ask
123+
`https://<server_name>/.well-known/matrix/client` for the homeserver and
124+
identity server URLs to use. This is the recommended approach for setting a
125+
default server. However, it is also possible to use the following to directly
126+
configure each of the URLs:
127+
* `default_hs_url` sets the default homeserver URL.
128+
* `default_is_url` sets the default identity server URL (this is the server used
129+
for verifying third party identifiers like email addresses). If this is blank,
130+
registering with an email address, adding an email address to your account,
131+
or inviting users via email address will not work. Matrix identity servers are
132+
very simple web services which map third party identifiers (currently only email
133+
addresses) to matrix IDs: see http://matrix.org/docs/spec/identity_service/unstable.html
134+
for more details. Currently the only public matrix identity servers are https://matrix.org
135+
and https://vector.im. In the future, identity servers will be decentralised.
136+
* Riot will report an error if you accidentally configure both `default_server_name` _and_ `default_hs_url` since it's unclear which should take priority.
130137
1. `features`: Lookup of optional features that may be `enable`d, `disable`d, or exposed to the user
131138
in the `labs` section of settings. The available optional experimental features vary from
132139
release to release.

0 commit comments

Comments
 (0)