Add nats server
This commit is contained in:
24
services/nats/default.nix
Normal file
24
services/nats/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.nats = {
|
||||
enable = true;
|
||||
jetstream = true;
|
||||
serverName = "nats1";
|
||||
settings = {
|
||||
accounts = {
|
||||
"ADMIN" = {
|
||||
users = [
|
||||
{
|
||||
nkey = "UA44ZINQKUBTV7CX3RE7MVHOEQOQK2VQGCI4GL4M7XBJB4S66URHLW7A";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
system_account = "ADMIN";
|
||||
jetstream = {
|
||||
max_mem = "1G";
|
||||
max_file = "1G";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user