summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-07-20 00:09:47 +0200
committermakefu <github@syntax-fehler.de>2019-07-20 00:09:47 +0200
commitc929afa9f3513eb457aa72762514ccfd3407dcb7 (patch)
treec8eb8a054dabdae2546afe51abfac6111e801816 /krebs/2configs/shack
parent1eeccb54a2ca0a2451781c0d528a410dbffae3c2 (diff)
wolf.r: grafana to seperate config
Diffstat (limited to 'krebs/2configs/shack')
-rw-r--r--krebs/2configs/shack/grafana.nix19
-rw-r--r--krebs/2configs/shack/influx.nix3
2 files changed, 21 insertions, 1 deletions
diff --git a/krebs/2configs/shack/grafana.nix b/krebs/2configs/shack/grafana.nix
new file mode 100644
index 000000000..adf0a4bc3
--- /dev/null
+++ b/krebs/2configs/shack/grafana.nix
@@ -0,0 +1,19 @@
+let
+ port = 3000;
+in {
+
+ networking.firewall.allowedTCPPorts = [ port ]; # legacy
+ services.nginx.virtualHosts."grafana.shack" = {
+ locations."/".proxyPass = "http://localhost:${toString port}";
+ };
+ services.grafana = {
+ enable = true;
+ port = port;
+ addr = "0.0.0.0";
+ users.allowSignUp = true;
+ users.allowOrgCreate = true;
+ users.autoAssignOrg = true;
+ auth.anonymous.enable = true;
+ security = import <secrets/grafana_security.nix>;
+ };
+}
diff --git a/krebs/2configs/shack/influx.nix b/krebs/2configs/shack/influx.nix
index 599416c97..91b4fa9b7 100644
--- a/krebs/2configs/shack/influx.nix
+++ b/krebs/2configs/shack/influx.nix
@@ -1,3 +1,4 @@
+# hostname: influx.shack
let
port = 8086;
in
@@ -11,7 +12,7 @@ in
services.influxdb = {
enable = true;
extraConfig = {
- bind-address = ":${toString port}";
+ http.bind-address = "0.0.0.0:${toString port}";
http.log-enabled = false;
};
};