diff --git a/modules/proxy.nix b/modules/proxy.nix index 6792409..f50011f 100644 --- a/modules/proxy.nix +++ b/modules/proxy.nix @@ -9,6 +9,7 @@ let atashDotDev = "atash.dev"; matrixDomain = "matrix.${atriDotDad}"; + livekitDomain = "livekit.${atriDotDad}"; upstream = "lloyd.tadpole-pain.ts.net"; streamPorts = [ @@ -32,7 +33,7 @@ let "org.matrix.msc4143.rtc_foci" = [ { type = "livekit"; - livekit_service_url = "https://${matrixDomain}/livekit/jwt"; + livekit_service_url = "https://${livekitDomain}"; } ]; }; @@ -156,6 +157,8 @@ in chronus.${atashDotDev} { ${mkProxy 7337 "strict_config"} } ${matrixDomain} { + import relaxed_config + request_body { max_size 1GB } @@ -164,6 +167,19 @@ in reverse_proxy http://${upstream}:30394 } } + + ${livekitDomain} { + import relaxed_config + + @jwt path /sfu/get /healthz /get_token + handle @jwt { + reverse_proxy http://${upstream}:8081 + } + + handle { + reverse_proxy http://${upstream}:7880 + } + } ''; };