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
1. Move (or symlink) the `riot-x.x.x` directory to an appropriate name
23
23
1. If desired, copy `config.sample.json` to `config.json` and edit it
24
-
as desired. See below for details.
24
+
as desired. See the [configuration docs](docs/config.md) for details.
25
25
1. Enter the URL into your browser and log into Riot!
26
26
27
27
Releases are signed using gpg and the OpenPGP standard, and can be checked against the public key located
@@ -52,9 +52,9 @@ on the client, Riot needs a way to supply the decrypted content from a separate
52
52
origin to the one Riot is hosted on. This currently done with a 'cross origin
53
53
renderer' which is a small piece of javascript hosted on a different domain.
54
54
To avoid all Riot installs needing one of these to be set up, riot.im hosts
55
-
one on usercontent.riot.im which is used by default. See 'config.json' if you'd
56
-
like to host your own. https://github.com/vector-im/riot-web/issues/6173 tracks
57
-
progress on replacing this with something better.
55
+
one on usercontent.riot.im which is used by default.
56
+
https://github.com/vector-im/riot-web/issues/6173 tracks progress on replacing
57
+
this with something better.
58
58
59
59
Building From Source
60
60
====================
@@ -91,7 +91,7 @@ guide](https://yarnpkg.com/docs/install/) if you do not have it already.
91
91
develop branch. (Note that we don't reference the develop versions in git directly
92
92
due to https://github.com/npm/npm/issues/3055.)
93
93
1. Configure the app by copying `config.sample.json` to `config.json` and
94
-
modifying it (see below for details).
94
+
modifying it. See the [configuration docs](docs/config.md)for details.
95
95
1.`yarn dist` to build a tarball to deploy. Untaring this file will give
96
96
a version-specific directory containing all the files that need to go on your
97
97
web server.
@@ -101,101 +101,6 @@ which will build all the necessary files into the `webapp` directory. The versio
101
101
will not appear in Settings without using the dist script. You can then mount the
102
102
`webapp` directory on your webserver to actually serve up the app, which is entirely static content.
103
103
104
-
config.json
105
-
===========
106
-
107
-
You can configure the app by copying `config.sample.json` to
108
-
`config.json` and customising it:
109
-
110
-
For a good example, see https://riot.im/develop/config.json.
111
-
112
-
1.`default_server_config` sets the default homeserver and identity server URL for
113
-
Riot to use. The object is the same as returned by [https://<server_name>/.well-known/matrix/client](https://matrix.org/docs/spec/client_server/latest.html#get-well-known-matrix-client),
114
-
with added support for a `server_name` under the `m.homeserver` section to display
115
-
a custom homeserver name. Alternatively, the config can contain a `default_server_name`
116
-
instead which is where Riot will go to get that same object, although this option is
117
-
deprecated - see the `.well-known` link above for more information on using this option.
118
-
Note that the `default_server_name` is used to get a complete server configuration
119
-
whereas the `server_name` in the `default_server_config` is for display purposes only.
120
-
**Note*: The URLs can also be individually specified as `default_hs_url` and
121
-
`default_is_url`, however these are deprecated. They are maintained for backwards
122
-
compatibility with older configurations. `default_is_url` is respected only
123
-
if `default_hs_url` is used.
124
-
* The identity server is used for verifying third party identifiers like emails
125
-
and phone numbers. It is not used to store your password or account information.
126
-
If not provided, the identity server defaults to vector.im unless `disable_identity_server`
127
-
is set to true in the config. Currently the only two public identity servers
128
-
are https://matrix.org and https://vector.im, however in future identity servers
129
-
will be decentralised.
130
-
* Riot will fail to load if a mix of `default_server_config`, `default_server_name`, or
131
-
`default_hs_url` is specified. When multiple sources are specified, it is unclear
132
-
which should take priority and therefore the application cannot continue.
133
-
1.`features`: Lookup of optional features that may be `enable`d, `disable`d, or exposed to the user
134
-
in the `labs` section of settings. The available optional experimental features vary from
135
-
release to release. Some of the available features are described in the Labs Feature section
136
-
of this README.
137
-
1.`showLabsSettings`: Shows the "labs" tab of user settings even when no `features` are enabled
138
-
or present. Useful for getting at settings which may be otherwise hidden.
139
-
1.`brand`: String to pass to your homeserver when configuring email notifications, to let the
140
-
homeserver know what email template to use when talking to you.
141
-
1.`branding`: Configures various branding and logo details, such as:
142
-
1.`welcomeBackgroundUrl`: An image to use as a wallpaper outside the app
143
-
during authentication flows
144
-
1.`authHeaderLogoUrl`: An logo image that is shown in the header during
145
-
authentication flows
146
-
1.`authFooterLinks`: a list of links to show in the authentication page footer:
Alternatively, you can edit the `og:image` meta tag in `index.html` directly
197
-
each time you download a new version of Riot.
198
-
199
104
Running as a Desktop app
200
105
========================
201
106
@@ -248,19 +153,8 @@ yarn global add nativefier
248
153
nativefier https://riot.im/app/
249
154
```
250
155
251
-
Desktop app configuration
252
-
=========================
253
-
254
-
To run multiple instances of the desktop app for different accounts, you can launch the executable with the `--profile` argument followed by a unique identifier, e.g `riot-web --profile Work` for it to run a separate profile and not interfere with the default one.
255
-
256
-
Alternatively, a custom location for the profile data can be specified using the `--profile-dir` flag followed by the desired path.
257
-
258
-
To change the config.json for the desktop app, create a config file which will be used to override values in the config which ships in the package:
259
-
+`%APPDATA%\$NAME\config.json` on Windows
260
-
+`$XDG_CONFIG_HOME\$NAME\config.json` or `~/.config/$NAME/config.json` on Linux
261
-
+`~Library/Application Support/$NAME/config.json` on macOS
262
-
263
-
In the paths above, `$NAME` is typically `Riot`, unless you use `--profile $PROFILE` in which case it becomes `Riot-$PROFILE`.
156
+
The [configuration docs](docs/config.md#desktop-app-configuration) show how to
157
+
override the desktop app's default settings if desired.
You can configure the app by copying `config.sample.json` to
5
+
`config.json` and customising it:
6
+
7
+
For a good example, see https://riot.im/develop/config.json.
8
+
9
+
1.`default_server_config` sets the default homeserver and identity server URL for
10
+
Riot to use. The object is the same as returned by [https://<server_name>/.well-known/matrix/client](https://matrix.org/docs/spec/client_server/latest.html#get-well-known-matrix-client),
11
+
with added support for a `server_name` under the `m.homeserver` section to display
12
+
a custom homeserver name. Alternatively, the config can contain a `default_server_name`
13
+
instead which is where Riot will go to get that same object, although this option is
14
+
deprecated - see the `.well-known` link above for more information on using this option.
15
+
Note that the `default_server_name` is used to get a complete server configuration
16
+
whereas the `server_name` in the `default_server_config` is for display purposes only.
17
+
**Note*: The URLs can also be individually specified as `default_hs_url` and
18
+
`default_is_url`, however these are deprecated. They are maintained for backwards
19
+
compatibility with older configurations. `default_is_url` is respected only
20
+
if `default_hs_url` is used.
21
+
* The identity server is used for verifying third party identifiers like emails
22
+
and phone numbers. It is not used to store your password or account information.
23
+
If not provided, the identity server defaults to vector.im unless `disable_identity_server`
24
+
is set to true in the config. Currently the only two public identity servers
25
+
are https://matrix.org and https://vector.im, however in future identity servers
26
+
will be decentralised.
27
+
* Riot will fail to load if a mix of `default_server_config`, `default_server_name`, or
28
+
`default_hs_url` is specified. When multiple sources are specified, it is unclear
29
+
which should take priority and therefore the application cannot continue.
30
+
1.`features`: Lookup of optional features that may be `enable`d, `disable`d, or exposed to the user
31
+
in the `labs` section of settings. The available optional experimental features vary from
32
+
release to release. Some of the available features are described in the Labs Feature section
33
+
of this README.
34
+
1.`showLabsSettings`: Shows the "labs" tab of user settings even when no `features` are enabled
35
+
or present. Useful for getting at settings which may be otherwise hidden.
36
+
1.`brand`: String to pass to your homeserver when configuring email notifications, to let the
37
+
homeserver know what email template to use when talking to you.
38
+
1.`branding`: Configures various branding and logo details, such as:
39
+
1.`welcomeBackgroundUrl`: An image to use as a wallpaper outside the app
40
+
during authentication flows
41
+
1.`authHeaderLogoUrl`: An logo image that is shown in the header during
42
+
authentication flows
43
+
1.`authFooterLinks`: a list of links to show in the authentication page footer:
0 commit comments