summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-05-24 10:49:34 +0200
committermakefu <github@syntax-fehler.de>2017-05-24 10:49:34 +0200
commitc29ba49d3dba4386ee90e784912d38b37e63efa6 (patch)
treeaef432eff699f39f4e98f25336fc61c1bf4faa55 /makefu/2configs
parentd9d7f7fd32295a3208ace7c2c1cdfaf61ab70f04 (diff)
m 2 central-stats-server: redirect http://stats.makefu.r to grafana
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/logging/central-stats-server.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefu/2configs/logging/central-stats-server.nix b/makefu/2configs/logging/central-stats-server.nix
index 4f7961f32..602fcc6d0 100644
--- a/makefu/2configs/logging/central-stats-server.nix
+++ b/makefu/2configs/logging/central-stats-server.nix
@@ -12,7 +12,9 @@ in {
services.grafana.addr = "0.0.0.0";
services.influxdb.enable = true;
-
+ # redirect grafana to stats.makefu.r
+ services.nginx.enable = true;
+ services.nginx.virtualHosts."stats.makefu.r".locations."/".proxyPass = "http://localhost:3000";
# forward these via nginx
services.influxdb.extraConfig = {
meta.hostname = config.krebs.build.host.name;