coturn: change port to 5349

synapse: coturn use default port, allow both tcp and udp
This commit is contained in:
2023-08-30 23:56:52 +08:00
parent e413b16605
commit 613bbb8513
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ inputs:
options.nixos.services.coturn = let inherit (inputs.lib) mkOption types; in
{
enable = mkOption { type = types.bool; default = false; };
port = mkOption { type = types.ints.unsigned; default = 3478; };
port = mkOption { type = types.ints.unsigned; default = 5349; };
hostname = mkOption { type = types.str; default = "coturn.chn.moe"; };
};
config =

View File

@@ -56,7 +56,7 @@ inputs:
admin_contact = "mailto:chn@chn.moe";
enable_registration = true;
registrations_require_3pid = [ "email" ];
turn_uris = [ "turns:coturn.chn.moe:3478?transport=udp" ];
turn_uris = [ "turns:coturn.chn.moe" ];
max_upload_size = "1024M";
web_client_location = "https://element.chn.moe/";
serve_server_wellknown = true;