From 669438f3d3b04d8892598c4da360af5f2755f601 Mon Sep 17 00:00:00 2001 From: fi Date: Thu, 6 Nov 2025 19:40:01 +0100 Subject: [PATCH] Add neo4j database to nekomesh --- config/hosts/metrics-nekomesh/configuration.nix | 2 +- config/hosts/metrics-nekomesh/default.nix | 1 + config/hosts/metrics-nekomesh/neo4j.nix | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 config/hosts/metrics-nekomesh/neo4j.nix diff --git a/config/hosts/metrics-nekomesh/configuration.nix b/config/hosts/metrics-nekomesh/configuration.nix index 8d5b18f..03a11b7 100644 --- a/config/hosts/metrics-nekomesh/configuration.nix +++ b/config/hosts/metrics-nekomesh/configuration.nix @@ -9,7 +9,7 @@ hostName = "metrics-nekomesh"; firewall = { enable = true; - allowedTCPPorts = [ 80 8443 9091 ]; + allowedTCPPorts = [ 80 7474 7687 8443 9091 ]; }; }; diff --git a/config/hosts/metrics-nekomesh/default.nix b/config/hosts/metrics-nekomesh/default.nix index ef5c25c..c2d39a4 100644 --- a/config/hosts/metrics-nekomesh/default.nix +++ b/config/hosts/metrics-nekomesh/default.nix @@ -3,6 +3,7 @@ imports = [ ./configuration.nix ./grafana.nix + ./neo4j.nix ./prometheus.nix ./nginx.nix ]; diff --git a/config/hosts/metrics-nekomesh/neo4j.nix b/config/hosts/metrics-nekomesh/neo4j.nix new file mode 100644 index 0000000..053999e --- /dev/null +++ b/config/hosts/metrics-nekomesh/neo4j.nix @@ -0,0 +1,9 @@ +{ ... }: +{ + services.neo4j = { + enable = true; + https.enable = false; + bolt.tlsLevel = "DISABLED"; + defaultListenAddress = "0.0.0.0"; + }; +}