20 lines
427 B
Nix
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;
|
|
};
|
|
};
|
|
}
|