livekit
This commit is contained in:
parent
b90f98eb64
commit
8fd56d0f3a
5 changed files with 165 additions and 0 deletions
|
|
@ -60,6 +60,34 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualHosts."livekit.ellie.town" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:7880";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_read_timeout 86400;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."lk-jwt.ellie.town" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8080";
|
||||
extraConfig = ''
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
add_header Access-Control-Allow-Methods "POST, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "Content-Type, Authorization" always;
|
||||
if ($request_method = OPTIONS) {
|
||||
return 204;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# virtualHosts."akkoma.ellie.town" = {
|
||||
# enableACME = true;
|
||||
# forceSSL = true;
|
||||
|
|
@ -131,6 +159,11 @@
|
|||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver":{"base_url":"https://matrix.ellie.town"}}';'';
|
||||
|
||||
locations."= /.well-known/element/call.json".extraConfig = ''
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"type":"livekit","livekit_service_url":"https://lk-jwt.ellie.town"}';'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue