Skip to content

Commit

Permalink
feat(holochain-turn-server): document remaining options
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Mar 20, 2024
1 parent f7d28ce commit d29bc23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/flake-parts/holochain-turn-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,45 +36,54 @@
options.services.holochain-turn-server = {
enable = lib.mkEnableOption "holochain turn server";
url = lib.mkOption {
description = "publicly visible url for the turn server";
type = lib.types.str;
};
turn-cert-dir = lib.mkOption {
description = "directory where fullchain.pem and key.pem are expected to exist";
type = lib.types.str;
default = config.security.acme.certs.${cfg.url}.directory;
};
address = lib.mkOption {
description = "address coturn should listen on";
type = lib.types.str;
};

nginx-http-port = lib.mkOption {
description = "port for nginx to listen on for answering ACME challenges";
type = lib.types.int;
# skipping 81 because it's the default coturn alternative http port
default = 82;
};

coturn-min-port = lib.mkOption {
description = "lower port for coturn's range";
type = lib.types.int;
default = 20000;
};

coturn-max-port = lib.mkOption {
description = "upper port for coturn's range";
type = lib.types.int;
default = 65535; # which is default but here listing explicitly
};

verbose = lib.mkEnableOption "verbose logging";

acme-redirect = lib.mkOption {
description = "value passed to acme-redirect configuration option";
type = lib.types.str;
default = "http://acme-${cfg.url}/.well-known/acme-challenge/";
};

username = lib.mkOption {
description = "user for establishing turn connections to coturn";
type = lib.types.str;
default = "test";
};

credential = lib.mkOption {
description = "credential for establishing turn connections to coturn";
type = lib.types.str;
default = "test";
};
Expand Down

0 comments on commit d29bc23

Please sign in to comment.