@@ -3,70 +3,9 @@
|
|||||||
let
|
let
|
||||||
livekitKeyFile = "/var/lib/livekit/livekit.key";
|
livekitKeyFile = "/var/lib/livekit/livekit.key";
|
||||||
serverName = "atri.dad";
|
serverName = "atri.dad";
|
||||||
matrixDomain = "matrix.atri.dad";
|
|
||||||
matrixRtcDomain = "matrixrtc.atri.dad";
|
matrixRtcDomain = "matrixrtc.atri.dad";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.matrix-continuwuity = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
global = {
|
|
||||||
server_name = serverName;
|
|
||||||
address = [
|
|
||||||
"127.0.0.1"
|
|
||||||
"::1"
|
|
||||||
];
|
|
||||||
port = [ 6167 ];
|
|
||||||
max_request_size = 104857600;
|
|
||||||
allow_registration = false;
|
|
||||||
allow_encryption = true;
|
|
||||||
allow_federation = true;
|
|
||||||
new_user_displayname_suffix = "";
|
|
||||||
log_to_journald = true;
|
|
||||||
trusted_servers = [
|
|
||||||
"matrix.org"
|
|
||||||
"chat.blahaj.zone"
|
|
||||||
];
|
|
||||||
ip_range_denylist = [
|
|
||||||
"127.0.0.0/8"
|
|
||||||
"10.0.0.0/8"
|
|
||||||
"172.16.0.0/12"
|
|
||||||
"192.168.0.0/16"
|
|
||||||
"100.64.0.0/10"
|
|
||||||
"192.0.0.0/24"
|
|
||||||
"169.254.0.0/16"
|
|
||||||
"198.18.0.0/15"
|
|
||||||
"::1/128"
|
|
||||||
"fe80::/10"
|
|
||||||
"fc00::/7"
|
|
||||||
];
|
|
||||||
|
|
||||||
zstd_compression = true;
|
|
||||||
gzip_compression = true;
|
|
||||||
brotli_compression = true;
|
|
||||||
|
|
||||||
allow_local_presence = true;
|
|
||||||
allow_incoming_presence = true;
|
|
||||||
allow_outgoing_presence = false;
|
|
||||||
allow_device_name_federation = false;
|
|
||||||
|
|
||||||
well_known = {
|
|
||||||
server = "${matrixDomain}:443";
|
|
||||||
client = "https://${matrixDomain}";
|
|
||||||
};
|
|
||||||
|
|
||||||
matrix_rtc = {
|
|
||||||
foci = [
|
|
||||||
{
|
|
||||||
type = "livekit";
|
|
||||||
livekit_service_url = "https://${matrixDomain}/livekit/jwt";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.livekit = {
|
services.livekit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user