diff options
author | lassulus <lass@lassul.us> | 2017-02-05 23:10:23 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-02-05 23:10:23 +0100 |
commit | 381d24634eddf4cc06d7f4043f4691e49bfd8611 (patch) | |
tree | 25459db6d1b3ffb93024bb87c552afee977e9233 /makefu/2configs/logging/central-logging-server.nix | |
parent | 7bcbb92979830bf8db28db5babad2527f2353805 (diff) | |
parent | d8ab184c3336ae9874f266bd77cf305f10d4bdd4 (diff) |
Merge remote-tracking branch 'prism/makefu'
Diffstat (limited to 'makefu/2configs/logging/central-logging-server.nix')
-rw-r--r-- | makefu/2configs/logging/central-logging-server.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/makefu/2configs/logging/central-logging-server.nix b/makefu/2configs/logging/central-logging-server.nix new file mode 100644 index 000000000..e2cfe6948 --- /dev/null +++ b/makefu/2configs/logging/central-logging-server.nix @@ -0,0 +1,23 @@ +{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 + iptables -A INPUT -i retiolum -p tcp --dport ${toString es-port} -j ACCEPT + ''; +} |