Compare commits
1 Commits
9f7431bb36
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ac2ca3c8be |
@@ -0,0 +1 @@
|
||||
/nix/store/p2h0fr7k47yrx3x0qkr3rwsp5nf5bj30-nixos-system-debian-4gb-fsn1-1-24.05.20241230.b134951
|
||||
@@ -20,6 +20,7 @@
|
||||
../../modules/services/backup.nix
|
||||
../../modules/services/stalwart.nix
|
||||
../../modules/services/virtualcam.nix
|
||||
../../modules/services/netdata.nix
|
||||
];
|
||||
|
||||
# Only 4GB RAM — limit nix builds to one core at a time to avoid OOM
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
#
|
||||
# Netdata
|
||||
#
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
config = {
|
||||
global = {
|
||||
"memory mode" = "ram";
|
||||
"debug log" = "none";
|
||||
"access log" = "none";
|
||||
"error log" = "syslog";
|
||||
};
|
||||
web = {
|
||||
"bind to" = "127.0.0.1:19999";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."netdata.severijnse.eu" = {
|
||||
extraConfig = ''
|
||||
import security_headers
|
||||
import csp
|
||||
reverse_proxy 127.0.0.1:19999
|
||||
encode zstd gzip
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user