Integrate coturn module with matrix-synapse
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m28s

This commit is contained in:
2024-07-08 19:06:06 +01:00
parent 7cb6beeaf1
commit 8e9bdc60f1
4 changed files with 115 additions and 44 deletions

View File

@ -1,6 +1,10 @@
{ config, lib, pkgs, inputs, ... }:
with lib;
{
config,
lib,
pkgs,
inputs,
...
}:
let
cfg = config.modules.services.matrix-synapse;
@ -18,13 +22,13 @@ let
'';
in {
options.modules.services.matrix-synapse = {
enable = mkOption {
enable = lib.mkOption {
default = false;
example = true;
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [
8448 # Matrix federation
];
@ -112,15 +116,11 @@ in {
enable = true;
settings = {
database.name = "sqlite3";
enable_metrics = false;
enable_registration = false;
max_upload_size = "100M";
report_stats = false;
server_name = "vimium.com";
# turn_shared_secret = "???";
# turn_uris = [
# "turn:turn.vimium.com:5349?transport=udp"
# "turn:turn.vimium.com:5350?transport=udp"
# "turn:turn.vimium.com:5349?transport=tcp"
# "turn:turn.vimium.com:5350?transport=tcp"
# ];
};
};
};