Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #3002

Open
wants to merge 1 commit into
base: livekit
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,57 @@ server {
}
```

Sample Caddyfile:

```
mydomain.com {
import logging
import errors
import server_add

header /.well-known/matrix/* Content-Type application/json
header /.well-known/matrix/* Access-Control-Allow-Origin *

respond /.well-known/matrix/server {"m.server":"mydomain.com:443"}
respond /.well-known/matrix/client {"m.homeserver":{"base_url":"https://mydomain.com"},"org.matrix.msc3575.proxy":{"url":"https://mydomain.com/sliding-sync"},"org.matrix.msc4143.rtc_foci":{"type":"livekit","livekit_service_url":"https://livekit-jwt.mydomain.com"}}
respond /.well-known/element/element.json {"call":{"widget_url":"https://call.mydomain.com"}}

handle /_matrix/client/unstable/org.matrix.msc3575/sync* {
reverse_proxy unix//var/run/synapse/main_public.sock

}
reverse_proxy /_matrix/* unix//var/run/synapse/main_public.sock
reverse_proxy /_synapse/client/* unix//var/run/synapse/main_public.sock
reverse_proxy /_synapse/admin/* unix//var/run/synapse/main_public.sock

handle_path /sliding-sync/* {
reverse_proxy unix//var/run/synapse/main_public.sock

}

}

call.mydomain.com {
import logging
import server_add
root * /opt/element-call/dist # the config.json file must be in this directory
file_server
try_files {path} /index.html
}

livekit.mydomain.com {
import logging
import server_add
reverse_proxy IP_OF_LIVEKIT:7880
}

livekit-jwt.mydomain.com {
import logging
import server_add
reverse_proxy IP_OF_LK_JWT:8080
}
```

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
Expand Down