27 lines
651 B
Nix
27 lines
651 B
Nix
|
{
|
||
|
services.netdata = {
|
||
|
enable = true;
|
||
|
config = {
|
||
|
#"exporting:global" = { "enabled" = "yes"; };
|
||
|
global = {
|
||
|
"memory mode" = "dbengine";
|
||
|
"dbengine disk space" = 1024 * 10; # in MB
|
||
|
"debug log" = "none";
|
||
|
"access log" = "none";
|
||
|
"error log" = "syslog";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx.enable = true;
|
||
|
services.nginx.virtualHosts."netdata.party.ingolf-wagner.de" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
basicAuth.admin = "NYsXfBKRwkkS60WIeZONtFTv3nz4tPy52uqLkzJzuc";
|
||
|
locations."/" = {
|
||
|
proxyPass = "http://localhost:19999";
|
||
|
proxyWebsockets = true;
|
||
|
};
|
||
|
};
|
||
|
}
|