git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/whitebophir: expose new option provided by whitebophir 1.8.0
commitb481663125d4a3f2ec24dd4b27da52a9b78c5142 authorIngo Blechschmidt <iblech@web.de> dateWed 10 Feb 2021, 23:33 (6 years ago) parent5b88cab
1 file changed+8−1
nixos/modules/services/web-apps/whitebophir.nix+8−1
nixos/modules/services/web-apps/whitebophir.nix+8−1
@@ -16,6 +16,12 @@ in {
1616 description = "Whitebophir package to use.";
1717 };
1818
19+ listenAddress = mkOption {
20+ type = types.str;
21+ default = "0.0.0.0";
22+ description = "Address to listen on (use 0.0.0.0 to allow access from any address).";
23+ };
24+
1925 port = mkOption {
2026 type = types.port;
2127 default = 5001;
@@ -30,7 +36,8 @@ in {
3036 wantedBy = [ "multi-user.target" ];
3137 after = [ "network.target" ];
3238 environment = {
33− PORT = "${toString cfg.port}";
39+ PORT = toString cfg.port;
40+ HOST = toString cfg.listenAddress;
3441 WBO_HISTORY_DIR = "/var/lib/whitebophir";
3542 };
3643