mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
services/netdata: Added to prometheus stack
This commit is contained in:
parent
f7f116a9a8
commit
7d701506ce
5 changed files with 48 additions and 1 deletions
24
services/netdata.nix
Normal file
24
services/netdata.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
katnet.private.tcp.ports = [ 19999 ];
|
||||
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.nginx = {#
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"${config.networking.hostName}.net.kittywit.ch" = {
|
||||
useACMEHost = "${config.networking.hostName}.net.kittywit.ch";
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/netdata" = {
|
||||
proxyPass = "http://[::1]:19999/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue