nixos-config/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/netdata.nix

27 lines
676 B
Nix
Raw Normal View History

{ config, ... }: {
2021-01-17 16:57:20 +01:00
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;
2021-05-23 13:37:02 +02:00
services.nginx.virtualHosts."netdata.${config.workadventure.domain}" = {
2021-01-17 16:57:20 +01:00
enableACME = true;
forceSSL = true;
basicAuth.admin = "NYsXfBKRwkkS60WIeZONtFTv3nz4tPy52uqLkzJzuc";
locations."/" = {
proxyPass = "http://localhost:19999";
proxyWebsockets = true;
};
};
}