forked from lix-project/hydra
hydra-module: Add a `port' option.
This commit is contained in:
parent
63500acc37
commit
dc9a118a04
|
@ -17,6 +17,7 @@ let
|
||||||
+ ''HYDRA_DBI="${cfg.dbi}" ''
|
+ ''HYDRA_DBI="${cfg.dbi}" ''
|
||||||
+ ''HYDRA_CONFIG=${cfg.baseDir}/data/hydra.conf ''
|
+ ''HYDRA_CONFIG=${cfg.baseDir}/data/hydra.conf ''
|
||||||
+ ''HYDRA_DATA=${cfg.baseDir}/data ''
|
+ ''HYDRA_DATA=${cfg.baseDir}/data ''
|
||||||
|
+ ''HYDRA_PORT="${toString cfg.port}" ''
|
||||||
+ ''HYDRA_TRACKER="${cfg.tracker}" ;'';
|
+ ''HYDRA_TRACKER="${cfg.tracker}" ;'';
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -68,6 +69,13 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
default = 3000;
|
||||||
|
description = ''
|
||||||
|
TCP port the web server should listen to.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
minimumDiskFree = mkOption {
|
minimumDiskFree = mkOption {
|
||||||
default = 5;
|
default = 5;
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in a new issue