2019-12-20 05:54:26 +01:00
|
|
|
{ config, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
statusPage = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"kibana.${config.networking.hostName}.private" = {
|
2019-12-20 05:54:26 +01:00
|
|
|
serverAliases = [ ];
|
2019-10-24 02:20:38 +02:00
|
|
|
locations."/" = {
|
2019-12-20 05:54:26 +01:00
|
|
|
proxyPass = "http://${config.networking.hostName}.private:${
|
|
|
|
toString config.services.kibana.port
|
|
|
|
}";
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.elasticsearch.enable = true;
|
2019-12-20 05:54:26 +01:00
|
|
|
services.elasticsearch.listenAddress =
|
|
|
|
"${config.networking.hostName}.private";
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
services.kibana.enable = true;
|
2019-12-20 05:54:26 +01:00
|
|
|
services.kibana.elasticsearch.hosts =
|
|
|
|
[ "http://${config.networking.hostName}.private:9200" ];
|
2019-10-24 02:20:38 +02:00
|
|
|
services.kibana.listenAddress = "${config.networking.hostName}.private";
|
|
|
|
services.kibana.port = 5601;
|
|
|
|
|
|
|
|
}
|