stockholm/makefu/2configs/logging/server.nix

24 lines
517 B
Nix
Raw Normal View History

2017-02-05 21:34:16 +00:00
{pkgs, config, ...}:
with import <stockholm/lib>;
let
es-port = 9200;
kibana-port = 5601;
in {
services.elasticsearch = {
enable = true;
listenAddress = "0.0.0.0";
port = es-port;
};
services.kibana = {
enable = true;
listenAddress = "0.0.0.0";
port = kibana-port;
};
networking.firewall.extraCommands = ''
iptables -A INPUT -i retiolum -p tcp --dport ${toString es-port} -j ACCEPT
2017-02-07 12:57:03 +00:00
iptables -A INPUT -i retiolum -p tcp --dport ${toString kibana-port} -j ACCEPT
2017-02-05 21:34:16 +00:00
'';
}