Skip to content

Commit

Permalink
nixos/galene: add turnAddress option and fix httpAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
erdnaxe committed Nov 3, 2024
1 parent a2798f0 commit 0512de2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixos/modules/services/web-apps/galene.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ in
description = "HTTP listen port.";
};

turnAddress = mkOption {
type = types.str;
default = "auto";
example = "127.0.0.1:1194";
description = "Built-in TURN server listen address and port. Set to \"\" to disable.";
};

staticDir = mkOption {
type = types.str;
default = "${cfg.package.static}/static";
Expand Down Expand Up @@ -145,6 +152,8 @@ in
WorkingDirectory = cfg.stateDir;
ExecStart = ''${cfg.package}/bin/galene \
${optionalString (cfg.insecure) "-insecure"} \
-http ${cfg.httpAddress}:${cfg.httpPort} \
-turn ${cfg.turnAddress} \
-data ${cfg.dataDir} \
-groups ${cfg.groupsDir} \
-recordings ${cfg.recordingsDir} \
Expand Down

0 comments on commit 0512de2

Please sign in to comment.