diff options
author | makefu <github@syntax-fehler.de> | 2018-12-13 01:32:12 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-12-13 01:32:12 +0100 |
commit | a8db537be5b157c0afe3a71d632724e1ceef3d4f (patch) | |
tree | a428ba1c11c9b7bc7ba7ed036821821dd7f039cc /makefu/2configs/stats | |
parent | 5f95c191932826c33f75b590f8f34f2ceb9cb492 (diff) |
ma netdata: init
Diffstat (limited to 'makefu/2configs/stats')
-rw-r--r-- | makefu/2configs/stats/client.nix | 7 | ||||
-rw-r--r-- | makefu/2configs/stats/netdata-server.nix | 17 |
2 files changed, 24 insertions, 0 deletions
diff --git a/makefu/2configs/stats/client.nix b/makefu/2configs/stats/client.nix new file mode 100644 index 000000000..b88515a35 --- /dev/null +++ b/makefu/2configs/stats/client.nix @@ -0,0 +1,7 @@ +{ + makefu.netdata = { + enable = true; + stream.role = "slave"; + # stream.destination = "netdata.makefu.r"; + }; +} diff --git a/makefu/2configs/stats/netdata-server.nix b/makefu/2configs/stats/netdata-server.nix new file mode 100644 index 000000000..5fec3583c --- /dev/null +++ b/makefu/2configs/stats/netdata-server.nix @@ -0,0 +1,17 @@ +{ + makefu.netdata = { + enable = true; + stream.role = "master"; + }; + + services.nginx = { + virtualHosts."netdata.euer.krebsco.de" = { + addSSL = true; + enableACME = true; + locations."/".proxyPass = "http://localhost:19999"; + }; + virtualHosts."netdata.makefu.r" = { + locations."/".proxyPass = "http://localhost:19999"; + }; + }; +} |