stockholm/krebs/2configs/shack/influx.nix
2019-07-20 00:09:47 +02:00

20 lines
427 B
Nix

# 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;
};
};
}