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

@@ -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}"
}
]
}