mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
services/tahoe: Add tub.location for specifying external IPs.
Invaluable for wiring up clouds.
This commit is contained in:
parent
052b9ec3b5
commit
d5c9a80ccd
1 changed files with 25 additions and 0 deletions
|
@ -26,6 +26,15 @@ in
|
||||||
The port on which the introducer will listen.
|
The port on which the introducer will listen.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
tub.location = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
description = ''
|
||||||
|
The external location that the introducer should listen on.
|
||||||
|
|
||||||
|
If specified, the port should be included.
|
||||||
|
'';
|
||||||
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
default = pkgs.tahoelafs;
|
default = pkgs.tahoelafs;
|
||||||
defaultText = "pkgs.tahoelafs";
|
defaultText = "pkgs.tahoelafs";
|
||||||
|
@ -60,6 +69,18 @@ in
|
||||||
system to listen on a different port.
|
system to listen on a different port.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
tub.location = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
description = ''
|
||||||
|
The external location that the node should listen on.
|
||||||
|
|
||||||
|
This is the setting to tweak if there are multiple interfaces
|
||||||
|
and you want to alter which interface Tahoe is advertising.
|
||||||
|
|
||||||
|
If specified, the port should be included.
|
||||||
|
'';
|
||||||
|
};
|
||||||
web.port = mkOption {
|
web.port = mkOption {
|
||||||
default = 3456;
|
default = 3456;
|
||||||
type = types.int;
|
type = types.int;
|
||||||
|
@ -144,6 +165,8 @@ in
|
||||||
[node]
|
[node]
|
||||||
nickname = ${settings.nickname}
|
nickname = ${settings.nickname}
|
||||||
tub.port = ${toString settings.tub.port}
|
tub.port = ${toString settings.tub.port}
|
||||||
|
${optionalString (settings.tub.location != null)
|
||||||
|
"tub.location = ${settings.tub.location}"}
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
# Actually require Tahoe, so that we will have it installed.
|
# Actually require Tahoe, so that we will have it installed.
|
||||||
|
@ -209,6 +232,8 @@ in
|
||||||
[node]
|
[node]
|
||||||
nickname = ${settings.nickname}
|
nickname = ${settings.nickname}
|
||||||
tub.port = ${toString settings.tub.port}
|
tub.port = ${toString settings.tub.port}
|
||||||
|
${optionalString (settings.tub.location != null)
|
||||||
|
"tub.location = ${settings.tub.location}"}
|
||||||
# This is a Twisted endpoint. Twisted Web doesn't work on
|
# This is a Twisted endpoint. Twisted Web doesn't work on
|
||||||
# non-TCP. ~ C.
|
# non-TCP. ~ C.
|
||||||
web.port = tcp:${toString settings.web.port}
|
web.port = tcp:${toString settings.web.port}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue