summary refs log tree commit diff
path: root/nixos/modules/services/web-apps
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-09 22:12:24 +0100
committerGitHub <noreply@github.com>2021-03-09 22:12:24 +0100
commit7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c (patch)
tree51fcdfeed0c72046ca4c5c3d697d8a77e2590d89 /nixos/modules/services/web-apps
parent0c8d7365883e17017dcb9282266c2c340cfa1300 (diff)
parent4fa699d6df425d3198921e0f0f372eb8a4a8f152 (diff)
downloadnixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar.gz
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar.bz2
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar.lz
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar.xz
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.tar.zst
nixpkgs-7a4d404e0fd73c0ec3d080929df55e1bc15c7f8c.zip
Merge pull request #112689 from iblech/patch-whitebophir180
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r--nixos/modules/services/web-apps/whitebophir.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/whitebophir.nix b/nixos/modules/services/web-apps/whitebophir.nix
index a19812547c4..b265296d5c1 100644
--- a/nixos/modules/services/web-apps/whitebophir.nix
+++ b/nixos/modules/services/web-apps/whitebophir.nix
@@ -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";
       };