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

19 lines
390 B
Nix
Raw Normal View History

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