added netdata
This commit is contained in:
parent
54c81c7ccf
commit
e16ccb1ac1
4 changed files with 31 additions and 3 deletions
25
modules/netdata/default.nix
Normal file
25
modules/netdata/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib, pkgs, config, ... }: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (config) conf;
|
||||
in mkIf conf.netdata.enable {
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"netdata.twoneis.site" = {
|
||||
useACMEHost = "twoneis.site";
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://localhost:19999";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
package = pkgs.netdata.override { withCloudUI = true; };
|
||||
config = {
|
||||
global = {
|
||||
"memory mode" = "ram";
|
||||
"error log" = "syslog";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue