Merge pull request #112689 from iblech/patch-whitebophir180

This commit is contained in:
Sandro
2021-03-09 22:12:24 +01:00
committed by GitHub
4 changed files with 89 additions and 73 deletions

View File

@@ -16,6 +16,12 @@ in {
description = "Whitebophir package to use.";
};
listenAddress = mkOption {
type = types.str;
default = "0.0.0.0";
description = "Address to listen on (use 0.0.0.0 to allow access from any address).";
};
port = mkOption {
type = types.port;
default = 5001;
@@ -30,7 +36,8 @@ in {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
environment = {
PORT = "${toString cfg.port}";
PORT = toString cfg.port;
HOST = toString cfg.listenAddress;
WBO_HISTORY_DIR = "/var/lib/whitebophir";
};