default to local instance
This commit is contained in:
parent
6cb457f306
commit
b2f590f7c5
4
mod.nix
4
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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user