This commit is contained in:
Ellie 2026-04-01 14:20:27 -07:00
parent b90f98eb64
commit 8fd56d0f3a
5 changed files with 165 additions and 0 deletions

View file

@ -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"}';'';
};
};