The playbook can install and configure LiveKit JWT Service for you.
LK-JWT-Service is currently used for a single reason: generate JWT tokens with a given identity for a given room, so that users can use them to authenticate against LiveKit SFU.
See the project's documentation to learn more.
By default, JWT Service is configured to be served:
- on the Matrix domain (
matrix.example.com
), configurable viamatrix_livekit_jwt_service_hostname
- under a
/livekit-jwt-service
path prefix, configurable viamatrix_livekit_jwt_service_path_prefix
This makes it easy to set it up, without having to adjust your DNS records manually.
If you've changed the default hostname, you may need to adjust your DNS records accordingly to point to the correct server.
Add the following configuration to your inventory/host_vars/matrix.example.com/vars.yml
file:
matrix_livekit_jwt_service_enabled: true
After configuring the playbook and potentially adjusting your DNS records, run the installation command: just install-all
or just setup-all
Once installed, a new org.matrix.msc4143.rtc_foci
section is added to the Element Web client to point to your JWT service URL (e.g., https://matrix.example.com/livekit-jwt-service
).
Refer to the LiveKit JWT-Service documentation for more details on configuring and using JWT Service.