nixos/coturn: use `types.port`

h7x4 c9d2056d a3cd28b2

Changed files
+7 -7
nixos
modules
services
networking
+7 -7
nixos/modules/services/networking/coturn.nix
···
services.coturn = {
enable = lib.mkEnableOption "coturn TURN server";
listening-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 3478;
description = ''
TURN listener port for UDP and TCP.
···
'';
};
tls-listening-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 5349;
description = ''
TURN listener port for TLS.
···
'';
};
alt-listening-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = cfg.listening-port + 1;
defaultText = lib.literalExpression "listening-port + 1";
description = ''
···
'';
};
alt-tls-listening-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = cfg.tls-listening-port + 1;
defaultText = lib.literalExpression "tls-listening-port + 1";
description = ''
···
'';
};
min-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 49152;
description = ''
Lower bound of UDP relay endpoints
'';
};
max-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 65535;
description = ''
Upper bound of UDP relay endpoints
···
'';
};
cli-port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 5766;
description = ''
CLI server port.