mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-10 21:55:19 +00:00
Bump lk-jwt-service to 0.7.0 in the docker setup and integrate it as an app service
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
id: "lk-jwt-service-othersite"
|
||||||
|
as_token: "ec_dev_as_token_othersite_0123456789ab"
|
||||||
|
hs_token: "ec_dev_hs_token_othersite_0123456789ab"
|
||||||
|
sender_localpart: "_lk_jwt_service"
|
||||||
|
namespaces:
|
||||||
|
users:
|
||||||
|
- exclusive: false
|
||||||
|
regex: "@.*:homeserver-1" # Cover all local users
|
||||||
|
# Required for Synapse to call POST /_matrix/app/v1/ping on this service.
|
||||||
|
url: "http://auth-server-1:16080"
|
||||||
|
# Enable membership look-ups via /is_joined.
|
||||||
|
io.element.msc4502.scopes:
|
||||||
|
["urn:matrix:client:io.element.msc4502:rooms:is_joined"]
|
||||||
|
# Route /_matrix/client/(v*|unstable/*)/rtc/livekit/* C-S and S-S requests to this
|
||||||
|
# service.
|
||||||
|
io.element.msc4512.proxy_prefix: "rtc/livekit"
|
||||||
|
io.element.msc4512.proxy_url: "http://auth-server-1:16080"
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
id: "lk-jwt-service"
|
||||||
|
as_token: "ec_dev_as_token_main_0123456789ab"
|
||||||
|
hs_token: "ec_dev_hs_token_main_0123456789ab"
|
||||||
|
sender_localpart: "_lk_jwt_service"
|
||||||
|
namespaces:
|
||||||
|
users:
|
||||||
|
- exclusive: false
|
||||||
|
regex: "@.*:homeserver" # Cover all local users
|
||||||
|
# Required for Synapse to call POST /_matrix/app/v1/ping on this service.
|
||||||
|
url: "http://auth-server:6080"
|
||||||
|
# Enable membership look-ups via /is_joined.
|
||||||
|
io.element.msc4502.scopes:
|
||||||
|
["urn:matrix:client:io.element.msc4502:rooms:is_joined"]
|
||||||
|
# Route /_matrix/client/(v*|unstable/*)/rtc/livekit/* C-S and S-S requests to this
|
||||||
|
# service.
|
||||||
|
io.element.msc4512.proxy_prefix: "rtc/livekit"
|
||||||
|
io.element.msc4512.proxy_url: "http://auth-server:6080"
|
||||||
@@ -42,6 +42,13 @@ experimental_features:
|
|||||||
msc4354_enabled: true
|
msc4354_enabled: true
|
||||||
# MatrixRTC
|
# MatrixRTC
|
||||||
msc4143_enabled: true
|
msc4143_enabled: true
|
||||||
|
# Enable membership look-up via /is_joined.
|
||||||
|
msc4502_enabled: true
|
||||||
|
# Enable C-S & S-S request proxying for application services.
|
||||||
|
msc4512_enabled: true
|
||||||
|
|
||||||
|
app_service_config_files:
|
||||||
|
- /data/cfg/app-service.yaml
|
||||||
|
|
||||||
# The maximum allowed duration by which sent events can be delayed, as
|
# The maximum allowed duration by which sent events can be delayed, as
|
||||||
# per MSC4140. Must be a positive value if set. Defaults to no
|
# per MSC4140. Must be a positive value if set. Defaults to no
|
||||||
|
|||||||
@@ -42,6 +42,13 @@ experimental_features:
|
|||||||
msc4354_enabled: true
|
msc4354_enabled: true
|
||||||
# MatrixRTC
|
# MatrixRTC
|
||||||
msc4143_enabled: true
|
msc4143_enabled: true
|
||||||
|
# Enable membership look-up via /is_joined.
|
||||||
|
msc4502_enabled: true
|
||||||
|
# Enable C-S & S-S request proxying for application services.
|
||||||
|
msc4512_enabled: true
|
||||||
|
|
||||||
|
app_service_config_files:
|
||||||
|
- /data/cfg/app-service.yaml
|
||||||
|
|
||||||
# The maximum allowed duration by which sent events can be delayed, as
|
# The maximum allowed duration by which sent events can be delayed, as
|
||||||
# per MSC4140. Must be a positive value if set. Defaults to no
|
# per MSC4140. Must be a positive value if set. Defaults to no
|
||||||
|
|||||||
@@ -42,6 +42,13 @@ experimental_features:
|
|||||||
msc4354_enabled: true
|
msc4354_enabled: true
|
||||||
# MatrixRTC
|
# MatrixRTC
|
||||||
msc4143_enabled: true
|
msc4143_enabled: true
|
||||||
|
# Enable membership look-up via /is_joined.
|
||||||
|
msc4502_enabled: true
|
||||||
|
# Enable C-S & S-S request proxying for application services.
|
||||||
|
msc4512_enabled: true
|
||||||
|
|
||||||
|
app_service_config_files:
|
||||||
|
- /data/cfg/app-service.yaml
|
||||||
|
|
||||||
# The maximum allowed duration by which sent events can be delayed, as
|
# The maximum allowed duration by which sent events can be delayed, as
|
||||||
# per MSC4140. Must be a positive value if set. Defaults to no
|
# per MSC4140. Must be a positive value if set. Defaults to no
|
||||||
|
|||||||
@@ -42,6 +42,13 @@ experimental_features:
|
|||||||
msc4354_enabled: true
|
msc4354_enabled: true
|
||||||
# MatrixRTC
|
# MatrixRTC
|
||||||
msc4143_enabled: true
|
msc4143_enabled: true
|
||||||
|
# Enable membership look-up via /is_joined.
|
||||||
|
msc4502_enabled: true
|
||||||
|
# Enable C-S & S-S request proxying for application services.
|
||||||
|
msc4512_enabled: true
|
||||||
|
|
||||||
|
app_service_config_files:
|
||||||
|
- /data/cfg/app-service.yaml
|
||||||
|
|
||||||
# The maximum allowed duration by which sent events can be delayed, as
|
# The maximum allowed duration by which sent events can be delayed, as
|
||||||
# per MSC4140. Must be a positive value if set. Defaults to no
|
# per MSC4140. Must be a positive value if set. Defaults to no
|
||||||
|
|||||||
+28
-4
@@ -3,7 +3,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
auth-service:
|
auth-service:
|
||||||
image: ghcr.io/element-hq/lk-jwt-service:0.4.4
|
image: ghcr.io/element-hq/lk-jwt-service:0.7.0
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
hostname: auth-server
|
hostname: auth-server
|
||||||
environment:
|
environment:
|
||||||
@@ -15,6 +15,14 @@ services:
|
|||||||
# a self-signed certificate
|
# a self-signed certificate
|
||||||
- LIVEKIT_INSECURE_SKIP_VERIFY_TLS=YES_I_KNOW_WHAT_I_AM_DOING
|
- LIVEKIT_INSECURE_SKIP_VERIFY_TLS=YES_I_KNOW_WHAT_I_AM_DOING
|
||||||
- LIVEKIT_FULL_ACCESS_HOMESERVERS=*
|
- LIVEKIT_FULL_ACCESS_HOMESERVERS=*
|
||||||
|
# Registers this instance as an application service on the main homeserver
|
||||||
|
- LIVEKIT_AS_REGISTRATION_FILE=/etc/lk-jwt-service/app-service.yaml
|
||||||
|
- LIVEKIT_HS_SERVER_NAME=synapse.m.localhost
|
||||||
|
# Neither homeserver serves /.well-known/matrix/client, so the C-S API
|
||||||
|
# location has to be given explicitly.
|
||||||
|
- LIVEKIT_CS_API_URL_OVERRIDES=synapse.m.localhost=http://homeserver:8008,synapse.othersite.m.localhost=http://homeserver-1:18008
|
||||||
|
volumes:
|
||||||
|
- ./backend/app-service.yaml:/etc/lk-jwt-service/app-service.yaml:Z
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -25,7 +33,7 @@ services:
|
|||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
auth-service-1:
|
auth-service-1:
|
||||||
image: ghcr.io/element-hq/lk-jwt-service:0.4.4
|
image: ghcr.io/element-hq/lk-jwt-service:0.7.0
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
hostname: auth-server-1
|
hostname: auth-server-1
|
||||||
environment:
|
environment:
|
||||||
@@ -37,6 +45,14 @@ services:
|
|||||||
# a self-signed certificate
|
# a self-signed certificate
|
||||||
- LIVEKIT_INSECURE_SKIP_VERIFY_TLS=YES_I_KNOW_WHAT_I_AM_DOING
|
- LIVEKIT_INSECURE_SKIP_VERIFY_TLS=YES_I_KNOW_WHAT_I_AM_DOING
|
||||||
- LIVEKIT_FULL_ACCESS_HOMESERVERS=*
|
- LIVEKIT_FULL_ACCESS_HOMESERVERS=*
|
||||||
|
# Registers this instance as an application service on the other homeserver.
|
||||||
|
- LIVEKIT_AS_REGISTRATION_FILE=/etc/lk-jwt-service/app-service.yaml
|
||||||
|
- LIVEKIT_HS_SERVER_NAME=synapse.othersite.m.localhost
|
||||||
|
# Neither homeserver serves /.well-known/matrix/client, so the C-S API
|
||||||
|
# location has to be given explicitly.
|
||||||
|
- LIVEKIT_CS_API_URL_OVERRIDES=synapse.m.localhost=http://homeserver:8008,synapse.othersite.m.localhost=http://homeserver-1:18008
|
||||||
|
volumes:
|
||||||
|
- ./backend/app-service-othersite.yaml:/etc/lk-jwt-service/app-service.yaml:Z
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -94,7 +110,10 @@ services:
|
|||||||
|
|
||||||
synapse:
|
synapse:
|
||||||
hostname: homeserver
|
hostname: homeserver
|
||||||
image: ghcr.io/element-hq/synapse:latest
|
# develop (not latest) is required for application service C-S/S-S proxying
|
||||||
|
# (MSC4512) and membership look-ups (MSC4502), which are not in a stable
|
||||||
|
# release yet.
|
||||||
|
image: ghcr.io/element-hq/synapse:develop
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml
|
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml
|
||||||
@@ -107,12 +126,16 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./backend/synapse_tmp:/data:Z
|
- ./backend/synapse_tmp:/data:Z
|
||||||
- ./backend/dev_homeserver.yaml:/data/cfg/homeserver.yaml:Z
|
- ./backend/dev_homeserver.yaml:/data/cfg/homeserver.yaml:Z
|
||||||
|
- ./backend/app-service.yaml:/data/cfg/app-service.yaml:Z
|
||||||
networks:
|
networks:
|
||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
synapse-1:
|
synapse-1:
|
||||||
hostname: homeserver-1
|
hostname: homeserver-1
|
||||||
image: ghcr.io/element-hq/synapse:latest
|
# develop (not latest) is required for application service C-S/S-S proxying
|
||||||
|
# (MSC4512) and membership look-ups (MSC4502), which are not in a stable
|
||||||
|
# release yet.
|
||||||
|
image: ghcr.io/element-hq/synapse:develop
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml
|
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml
|
||||||
@@ -125,6 +148,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./backend/synapse_tmp_othersite:/data:Z
|
- ./backend/synapse_tmp_othersite:/data:Z
|
||||||
- ./backend/dev_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z
|
- ./backend/dev_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z
|
||||||
|
- ./backend/app-service-othersite.yaml:/data/cfg/app-service.yaml:Z
|
||||||
networks:
|
networks:
|
||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,18 @@
|
|||||||
services:
|
services:
|
||||||
synapse:
|
synapse:
|
||||||
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
|
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
|
||||||
image: ghcr.io/element-hq/synapse:latest@sha256:da325af40104051923899e5f5a2f1d537e6e3ccf2f0f38285689ae9bbfdb190a
|
# develop (not latest) is required for application service C-S/S-S proxying
|
||||||
|
# (MSC4512) and membership look-ups (MSC4502), which are not in a stable
|
||||||
|
# release yet.
|
||||||
|
image: ghcr.io/element-hq/synapse:develop@sha256:337921fd22be310d453344b2265f6c9942315446595df3cf81866f71ca2055a7
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/playwright_homeserver.yaml:/data/cfg/homeserver.yaml:Z
|
- ./backend/playwright_homeserver.yaml:/data/cfg/homeserver.yaml:Z
|
||||||
synapse-1:
|
synapse-1:
|
||||||
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
|
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
|
||||||
image: ghcr.io/element-hq/synapse:latest@sha256:da325af40104051923899e5f5a2f1d537e6e3ccf2f0f38285689ae9bbfdb190a
|
# develop (not latest) is required for application service C-S/S-S proxying
|
||||||
|
# (MSC4512) and membership look-ups (MSC4502), which are not in a stable
|
||||||
|
# release yet.
|
||||||
|
image: ghcr.io/element-hq/synapse:develop@sha256:337921fd22be310d453344b2265f6c9942315446595df3cf81866f71ca2055a7
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/playwright_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z
|
- ./backend/playwright_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z
|
||||||
element-web:
|
element-web:
|
||||||
|
|||||||
Reference in New Issue
Block a user