You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This the recommended way to define a default server (instead of the existing HS
and IS URL options). It will use `.well-known` discovery to find the URLs.
See element-hq#8763.
Copy file name to clipboardExpand all lines: README.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,17 +116,24 @@ config.json
116
116
You can configure the app by copying `config.sample.json` to
117
117
`config.json` and customising it:
118
118
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.
130
137
1.`features`: Lookup of optional features that may be `enable`d, `disable`d, or exposed to the user
131
138
in the `labs` section of settings. The available optional experimental features vary from
0 commit comments