From b2f590f7c56343cb3d531658d848fc539cde4e27 Mon Sep 17 00:00:00 2001 From: shimun Date: Sun, 20 Dec 2020 19:30:35 +0100 Subject: [PATCH] default to local instance --- mod.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.nix b/mod.nix index 3dcd581..8ee5ca7 100644 --- a/mod.nix +++ b/mod.nix @@ -9,7 +9,7 @@ in enable = mkEnableOption "brownpaper service"; listen = mkOption { type = types.str; - default = "0.0.0.0"; + default = "127.0.0.1"; }; port = mkOption { type = types.int; @@ -32,7 +32,7 @@ in enable = mkEnableOption "brownpaper client"; endpoint = mkOption { type = types.str; - default = "http://localhost:3000"; + default = "http://${cfg.listen}:${toString cfg.port}"; }; }; config = {