make livekit almost work

This commit is contained in:
Matthew Hodgson
2024-11-05 10:16:14 +00:00
parent b17f81a6e3
commit 01b3f9f435
8 changed files with 63 additions and 21 deletions

View File

@@ -17,7 +17,11 @@
"default_widget_container_height": 280,
"default_country_code": "${COUNTRY}",
"show_labs_settings": false,
"features": {},
"features": {
"feature_video_rooms": true,
"feature_group_calls": true,
"feature_element_call_video_rooms": true
},
"default_federate": true,
"default_theme": "light",
"room_directory": {
@@ -27,8 +31,7 @@
"breadcrumbs": true
},
"element_call": {
"url": "https://${ELEMENT_CALL_FQDN}",
"brand": "Element Call"
"url": "https://${ELEMENT_CALL_FQDN}"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}

View File

@@ -86,6 +86,9 @@ policy:
admin_users:
- admin
account:
password_registration_enabled: false
branding:
service_name: null
policy_uri: null

View File

@@ -66,7 +66,7 @@ server {
include /etc/nginx/conf.d/include/ssl.conf;
location / {
proxy_pass http://element-call;
proxy_pass http://element-call:8080;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
}
}
@@ -84,6 +84,18 @@ server {
}
}
server {
server_name ${LIVEKIT_FQDN};
server_tokens off;
include /etc/nginx/conf.d/include/ssl.conf;
location / {
proxy_pass http://livekit:7880;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
}
}
server {
server_name ${HOMESERVER_FQDN};
server_tokens off;
@@ -106,21 +118,25 @@ server {
location ~ ^/_matrix/client/(r0|v3)/sync${DOLLAR} {
proxy_pass http://synapse-generic-worker-1:8081;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
}
location ~ ^/_matrix/client/(api/v1|r0|v3)/events${DOLLAR} {
proxy_pass http://synapse-generic-worker-1:8081;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
}
location ~ ^/_matrix/client/(api/v1|r0|v3)/initialSync${DOLLAR} {
proxy_pass http://synapse-generic-worker-1:8081;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
}
location ~ ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync${DOLLAR} {
proxy_pass http://synapse-generic-worker-1:8081;
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
}
location / {

View File

@@ -12,7 +12,7 @@
"org.matrix.msc4143.rtc_foci": [
{
"type": "livekit",
"livekit_service_url": "https://${ELEMENT_CALL_FQDN}"
"livekit_service_url": "https://${LIVEKIT_FQDN}"
}
]
}