Skip to content

Commit 2961cfa

Browse files
committed
update README.md
1 parent 65742db commit 2961cfa

File tree

2 files changed

+75
-29
lines changed

2 files changed

+75
-29
lines changed

README.md

Lines changed: 74 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@
33
[![Chat](https://img.shields.io/matrix/webrtc:matrix.org)](https://matrix.to/#/#webrtc:matrix.org)
44
[![Localazy](https://img.shields.io/endpoint?url=https%3A%2F%2Fconnect.localazy.com%2Fstatus%2Felement-call%2Fdata%3Fcontent%3Dall%26title%3Dlocalazy%26logo%3Dtrue)](https://localazy.com/p/element-call)
55

6-
Group calls with WebRTC that leverage [Matrix](https://matrix.org) and an open-source WebRTC toolkit from [LiveKit](https://livekit.io/).
6+
Group calls with WebRTC that leverage [Matrix](https://matrix.org) and an
7+
open-source WebRTC toolkit from [LiveKit](https://livekit.io/).
78

8-
For prior version of the Element Call that relied solely on full-mesh logic, check [`full-mesh`](https://github.com/element-hq/element-call/tree/full-mesh) branch.
9+
For prior version of the Element Call that relied solely on full-mesh logic,
10+
check [`full-mesh`](https://github.com/element-hq/element-call/tree/full-mesh)
11+
branch.
912

1013
![A demo of Element Call with six people](demo.jpg)
1114

12-
To try it out, visit our hosted version at [call.element.io](https://call.element.io). You can also find the latest development version continuously deployed to [call.element.dev](https://call.element.dev/).
15+
To try it out, visit our hosted version at
16+
[call.element.io](https://call.element.io). You can also find the latest
17+
development version continuously deployed to
18+
[call.element.dev](https://call.element.dev/).
1319

1420
## Host it yourself
1521

16-
Until prebuilt tarballs are available, you'll need to build Element Call from source. First, clone and install the package:
22+
Until prebuilt tarballs are available, you'll need to build Element Call from
23+
source. First, clone and install the package:
1724

1825
```
1926
git clone https://github.com/element-hq/element-call.git
@@ -22,17 +29,23 @@ yarn
2229
yarn build
2330
```
2431

25-
If all went well, you can now find the build output under `dist` as a series of static files. These can be hosted using any web server that can be configured with custom routes (see below).
32+
If all went well, you can now find the build output under `dist` as a series of
33+
static files. These can be hosted using any web server that can be configured
34+
with custom routes (see below).
2635

27-
You may also wish to add a configuration file (Element Call uses the domain it's hosted on as a Homeserver URL by default,
28-
but you can change this in the config file). This goes in `public/config.json` - you can use the sample as a starting point:
36+
You may also wish to add a configuration file (Element Call uses the domain it's
37+
hosted on as a Homeserver URL by default, but you can change this in the config
38+
file). This goes in `public/config.json` - you can use the sample as a starting
39+
point:
2940

3041
```
31-
cp config/config.devenv.json public/config.json
42+
cp config/config.sample.json public/config.json
3243
# edit public/config.json
3344
```
3445

35-
Because Element Call uses client-side routing, your server must be able to route any requests to non-existing paths back to `/index.html`. For example, in Nginx you can achieve this with the `try_files` directive:
46+
Because Element Call uses client-side routing, your server must be able to route
47+
any requests to non-existing paths back to `/index.html`. For example, in Nginx
48+
you can achieve this with the `try_files` directive:
3649

3750
```
3851
server {
@@ -44,17 +57,36 @@ server {
4457
}
4558
```
4659

47-
By default, the app expects you to have a Matrix homeserver (such as [Synapse](https://element-hq.github.io/synapse/latest/setup/installation.html)) installed locally and running on port 8008. If you wish to use a homeserver on a different URL or one that is hosted on a different server, you can add a config file as above, and include the homeserver URL that you'd like to use.
60+
By default, the app expects you to have a Matrix homeserver (such as
61+
[Synapse](https://element-hq.github.io/synapse/latest/setup/installation.html))
62+
installed locally and running on port 8008. If you wish to use a homeserver on a
63+
different URL or one that is hosted on a different server, you can add a config
64+
file as above, and include the homeserver URL that you'd like to use.
4865

49-
Element Call requires a homeserver with registration enabled without any 3pid or token requirements, if you want it to be used by unregistered users. Furthermore, it is not recommended to use it with an existing homeserver where user accounts have joined normal rooms, as it may not be able to handle those yet and it may behave unreliably.
66+
Element Call requires a homeserver with registration enabled without any 3pid or
67+
token requirements, if you want it to be used by unregistered users.
68+
Furthermore, it is not recommended to use it with an existing homeserver where
69+
user accounts have joined normal rooms, as it may not be able to handle those
70+
yet and it may behave unreliably.
5071

51-
Therefore, to use a self-hosted homeserver, this is recommended to be a new server where any user account created has not joined any normal rooms anywhere in the Matrix federated network. The homeserver used can be setup to disable federation, so as to prevent spam registrations (if you keep registrations open) and to ensure Element Call continues to work in case any user decides to log in to their Element Call account using the standard Element app and joins normal rooms that Element Call cannot handle.
72+
Therefore, to use a self-hosted homeserver, this is recommended to be a new
73+
server where any user account created has not joined any normal rooms anywhere
74+
in the Matrix federated network. The homeserver used can be setup to disable
75+
federation, so as to prevent spam registrations (if you keep registrations open)
76+
and to ensure Element Call continues to work in case any user decides to log in
77+
to their Element Call account using the standard Element app and joins normal
78+
rooms that Element Call cannot handle.
5279

5380
## Configuration
5481

55-
There are currently two different config files. `.env` holds variables that are used at build time, while `public/config.json` holds variables that are used at runtime. Documentation and default values for `public/config.json` can be found in [ConfigOptions.ts](src/config/ConfigOptions.ts).
82+
There are currently two different config files. `.env` holds variables that are
83+
used at build time, while `public/config.json` holds variables that are used at
84+
runtime. Documentation and default values for `public/config.json` can be found
85+
in [ConfigOptions.ts](src/config/ConfigOptions.ts).
5686

57-
If you're using [Synapse](https://github.com/element-hq/synapse/), you'll need to additionally add the following to `homeserver.yaml` or Element Call won't work:
87+
If you're using [Synapse](https://github.com/element-hq/synapse/), you'll need
88+
to additionally add the following to `homeserver.yaml` or Element Call won't
89+
work:
5890

5991
```
6092
experimental_features:
@@ -72,10 +104,16 @@ rc_message:
72104
burst_count: 30
73105
```
74106

75-
MSC3266 allows to request a room summary of rooms you are not joined.
76-
The summary contains the room join rules. We need that to decide if the user gets prompted with the option to knock ("ask to join"), a cannot join error or the join view.
107+
MSC3266 allows to request a room summary of rooms you are not joined. The
108+
summary contains the room join rules. We need that to decide if the user gets
109+
prompted with the option to knock ("ask to join"), a cannot join error or the
110+
join view.
77111

78-
Element Call requires a Livekit SFU behind a [Livekit JWT service](https://github.com/element-hq/lk-jwt-service) to work. The url to the Livekit JWT service can either be configured in the config of Element Call (fallback/legacy configuration) or be configured by your homeserver via the `.well-known/matrix/client`. This is the recommended method.
112+
Element Call requires a Livekit SFU alongside a [Livekit JWT
113+
service](https://github.com/element-hq/lk-jwt-service) to work. The url to the
114+
Livekit JWT service can either be configured in the config of Element Call
115+
(fallback/legacy configuration) or be configured by your homeserver via the
116+
`.well-known/matrix/client`. This is the recommended method.
79117

80118
The configuration is a list of Foci configs:
81119

@@ -98,13 +136,18 @@ The configuration is a list of Foci configs:
98136

99137
## Translation
100138

101-
If you'd like to help translate Element Call, head over to [Localazy](https://localazy.com/p/element-call). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts.
139+
If you'd like to help translate Element Call, head over to
140+
[Localazy](https://localazy.com/p/element-call). You're also encouraged to join
141+
the [Element Translators](https://matrix.to/#/#translators:element.io) space to
142+
discuss and coordinate translation efforts.
102143

103144
## Development
104145

105146
### Frontend
106147

107-
Element Call is built against [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk/pull/2553). To get started, clone, install, and link the package:
148+
Element Call is built against
149+
[matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk/pull/2553). To get
150+
started, clone, install, and link the package:
108151

109152
```
110153
git clone https://github.com/matrix-org/matrix-js-sdk.git
@@ -122,13 +165,14 @@ yarn
122165
yarn link matrix-js-sdk
123166
```
124167

125-
To use it, create a local config by, e.g., `cp ./config/config.sample.json
126-
./public/config.json` and adapt it if necessary. The sample config should work
127-
with the backend development environment as outlined in the next section out of
128-
box.
168+
To use it, create a local config by, e.g., `cp ./config/config.devenv.json
169+
./public/config.json` and adapt it if necessary. The `config.devenv.json` config
170+
should work with the backend development environment as outlined in the next
171+
section out of box.
129172

130-
(Be aware, that this is only the fallback Livekit SFU. If the homeserver
131-
advertises one in the client well-known, this will not be used.)
173+
(Be aware, that this `config.devenv.json` is exposing a deprecated fallback
174+
LiveKit config key. If the homeserver advertises SFU backend via
175+
`.well-known/matrix/client` this has precedence.)
132176

133177
You're now ready to launch the development server:
134178

@@ -167,16 +211,18 @@ yarn backend
167211
To add a new translation key you can do these steps:
168212

169213
1. Add the new key entry to the code where the new key is used: `t("some_new_key")`
170-
1. Run `yarn i18n` to extract the new key and update the translation files. This will add a skeleton entry to the `public/locales/en-GB/app.json` file:
214+
1. Run `yarn i18n` to extract the new key and update the translation files. This
215+
will add a skeleton entry to the `public/locales/en-GB/app.json` file:
171216
```jsonc
172217
{
173218
...
174219
"some_new_key": "",
175220
...
176221
}
177222
```
178-
1. Update the skeleton entry in the `public/locales/en-GB/app.json` file with the English translation:
179-
```jsonc
223+
1. Update the skeleton entry in the `public/locales/en-GB/app.json` file with
224+
the English translation:
225+
```jsonc
180226
{
181227
...
182228
"some_new_key": "Some new key",

backend/tls_localhost_nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ server {
1313
# Note well-known is currently not effective due to:
1414
# https://spec.matrix.org/v1.12/client-server-api/#well-known-uri the spec
1515
# says it must be at https://$server_name/... (implied port 443) Hence, we
16-
# currently rely for local development environment on depricated config.json
16+
# currently rely for local development environment on deprecated config.json
1717
# setting for livekit_service_url
1818
location /.well-known/matrix/client {
1919
return 200 '{"m.homeserver": {"base_url": "http://synapse.localhost:8008"}, "org.matrix.msc4143.rtc_foci": [{"type": "livekit", "livekit_service_url": "http://localhost:8080"}]}';

0 commit comments

Comments
 (0)