netdata again
This commit is contained in:
parent
7185fdc514
commit
6b8f0afde8
4 changed files with 12 additions and 13 deletions
29
modules/netdata/default.nix
Normal file
29
modules/netdata/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, pkgs, config, ... }: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (config) conf;
|
||||
in mkIf conf.grafana.enable {
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"netdata.twoneis.site" = {
|
||||
useACMEHost = "twoneis.site";
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:19999";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
package = pkgs.netdata.override { withCloudUi = true; };
|
||||
config.global = {
|
||||
"memory mode" = "ram";
|
||||
"debug log" = "none";
|
||||
"access log" = "none";
|
||||
"error log" = "syslog";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue