summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/influx.nix
blob: 91b4fa9b7d347a60dd7e63608e3deca5637ccb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# hostname: influx.shack
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 = {
      http.bind-address = "0.0.0.0:${toString port}";
      http.log-enabled = false;
    };
  };
}