stockholm/krebs/2configs/shack/influx.nix

20 lines
427 B
Nix
Raw Normal View History

2019-07-19 22:09:47 +00:00
# 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 = {
2019-07-19 22:09:47 +00:00
http.bind-address = "0.0.0.0:${toString port}";
http.log-enabled = false;
};
};
}