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";
|
enable = mkEnableOption "brownpaper service";
|
||||||
listen = mkOption {
|
listen = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "0.0.0.0";
|
default = "127.0.0.1";
|
||||||
};
|
};
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
@ -32,7 +32,7 @@ in
|
|||||||
enable = mkEnableOption "brownpaper client";
|
enable = mkEnableOption "brownpaper client";
|
||||||
endpoint = mkOption {
|
endpoint = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "http://localhost:3000";
|
default = "http://${cfg.listen}:${toString cfg.port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user