Add nats server
Some checks failed
Run nix flake check / flake-check (push) Failing after 17m6s
Periodic flake update / flake-update (push) Successful in 1m28s

This commit is contained in:
2025-02-08 00:26:53 +01:00
parent 4d2fbff6d0
commit c43e2aa063
7 changed files with 193 additions and 71 deletions

24
services/nats/default.nix Normal file
View 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";
};
};
};
}

View File

@@ -1,7 +1,7 @@
$ORIGIN home.2rjus.net.
$TTL 1800
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
2050 ; serial number
2051 ; serial number
3600 ; refresh
900 ; retry
1209600 ; expire
@@ -59,6 +59,7 @@ jelly01 IN A 10.69.13.14
nix-cache01 IN A 10.69.13.15
nix-cache IN CNAME nix-cache01
pgdb1 IN A 10.69.13.16
nats1 IN A 10.69.13.17
; http-proxy cnames
nzbget IN CNAME http-proxy