summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/influx.nix
blob: 599416c97f1192ec10ce3465590f199817f5130f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let
  port = 8086;
in
{
  networking.firewall.allowedTCPPorts = [ port ]; # for legacy applications
  services.nginx.virtualHosts."influx.shack" = {
    locations."/" = {
      proxyPass = "http://localhost:${toString port}/";
    };
  };
  services.influxdb = {
    enable = true;
    extraConfig = {
      bind-address = ":${toString port}";
      http.log-enabled = false;
    };
  };
}