This commit is contained in:
@@ -39,7 +39,7 @@ in
|
|||||||
rtc_transports = [
|
rtc_transports = [
|
||||||
{
|
{
|
||||||
type = "livekit";
|
type = "livekit";
|
||||||
livekit_service_url = "https://${matrixRtcDomain}";
|
livekit_service_url = "https://${matrixDomain}/livekit/jwt";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ let
|
|||||||
"org.matrix.msc4143.rtc_foci" = [
|
"org.matrix.msc4143.rtc_foci" = [
|
||||||
{
|
{
|
||||||
type = "livekit";
|
type = "livekit";
|
||||||
livekit_service_url = "https://${matrixRtcDomain}";
|
livekit_service_url = "https://${matrixDomain}/livekit/jwt";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -389,43 +389,26 @@ in
|
|||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
locations."^~ /livekit/jwt/" = {
|
||||||
|
priority = 400;
|
||||||
|
proxyPass = "http://[::1]:${toString config.services.lk-jwt-service.port}/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"matrixrtc.atri.dad" = {
|
"matrixrtc.atri.dad" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
# lk-jwt-service (handles its own CORS)
|
|
||||||
locations."/sfu/get" = {
|
|
||||||
proxyPass = "http://[::1]:${toString config.services.lk-jwt-service.port}";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
locations."/healthz" = {
|
|
||||||
proxyPass = "http://[::1]:${toString config.services.lk-jwt-service.port}";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# livekit
|
# livekit
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://[::1]:${toString config.services.livekit.settings.port}";
|
proxyPass = "http://[::1]:${toString config.services.livekit.settings.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_send_timeout 120;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_read_timeout 120;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_buffering off;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header Accept-Encoding gzip;
|
||||||
proxy_read_timeout 300;
|
|
||||||
proxy_send_timeout 300;
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user