default to local instance

This commit is contained in:
shimun 2020-12-20 19:30:35 +01:00
parent 6cb457f306
commit b2f590f7c5
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -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 = {