diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-09-21 14:15:49 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-08-12 15:45:48 -0700 |
commit | 0fbce25144c1ddcd766203f6946dac11056edb7e (patch) | |
tree | d16a8f990e27989db7314086aeaf508968eceee6 /nixos | |
parent | 663e41e6df4df274014c3447c1996c83af33deef (diff) |
neo4j: 3.5.14 -> 4.1.1
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/neo4j.nix | 47 | ||||
-rw-r--r-- | nixos/tests/neo4j.nix | 3 |
2 files changed, 22 insertions, 28 deletions
diff --git a/nixos/modules/services/databases/neo4j.nix b/nixos/modules/services/databases/neo4j.nix index d1be4034ddacb..61f7cf6cc2531 100644 --- a/nixos/modules/services/databases/neo4j.nix +++ b/nixos/modules/services/databases/neo4j.nix @@ -36,24 +36,29 @@ let serverConfig = pkgs.writeText "neo4j.conf" '' # General dbms.allow_upgrade=${boolToString cfg.allowUpgrade} - dbms.connectors.default_listen_address=${cfg.defaultListenAddress} + dbms.default_listen_address=${cfg.defaultListenAddress} dbms.read_only=${boolToString cfg.readOnly} ${optionalString (cfg.workerCount > 0) '' dbms.threads.worker_count=${toString cfg.workerCount} ''} - # Directories + # Directories (readonly) dbms.directories.certificates=${cfg.directories.certificates} - dbms.directories.data=${cfg.directories.data} - dbms.directories.logs=${cfg.directories.home}/logs dbms.directories.plugins=${cfg.directories.plugins} + dbms.directories.lib=${cfg.package}/share/neo4j/lib ${optionalString (cfg.constrainLoadCsv) '' dbms.directories.import=${cfg.directories.imports} - ''} + ''} + + # Directories (read and write) + dbms.directories.home=${cfg.directories.home} + dbms.directories.data=${cfg.directories.data} + dbms.directories.logs=${cfg.directories.home}/logs + dbms.directories.run=${cfg.directories.home}/run # HTTP Connector ${optionalString (cfg.http.enable) '' - dbms.connector.http.enabled=${boolToString cfg.http.enable} + dbms.connector.http.enabled=${boolToString cfg.https.enable} dbms.connector.http.listen_address=${cfg.http.listenAddress} ''} ${optionalString (!cfg.http.enable) '' @@ -67,17 +72,12 @@ let # HTTPS Connector dbms.connector.https.enabled=${boolToString cfg.https.enable} dbms.connector.https.listen_address=${cfg.https.listenAddress} - https.ssl_policy=${cfg.https.sslPolicy} # BOLT Connector dbms.connector.bolt.enabled=${boolToString cfg.bolt.enable} dbms.connector.bolt.listen_address=${cfg.bolt.listenAddress} - bolt.ssl_policy=${cfg.bolt.sslPolicy} dbms.connector.bolt.tls_level=${cfg.bolt.tlsLevel} - # neo4j-shell - dbms.shell.enabled=${boolToString cfg.shell.enable} - # SSL Policies ${concatStringsSep "\n" sslPolicies} @@ -95,8 +95,10 @@ let dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true dbms.jvm.additional=-Dunsupported.dbms.udc.source=tarball - # Usage Data Collector - dbms.udc.enabled=${boolToString cfg.udc.enable} + #dbms.memory.heap.initial_size=12000m + #dbms.memory.heap.max_size=12000m + #dbms.memory.pagecache.size=4g + #dbms.tx_state.max_off_heap_memory=8000m # Extra Configuration ${cfg.extraServerConfig} @@ -114,6 +116,8 @@ in { (mkRemovedOptionModule [ "services" "neo4j" "port" ] "Use services.neo4j.http.listenAddress instead.") (mkRemovedOptionModule [ "services" "neo4j" "boltPort" ] "Use services.neo4j.bolt.listenAddress instead.") (mkRemovedOptionModule [ "services" "neo4j" "httpsPort" ] "Use services.neo4j.https.listenAddress instead.") + (mkRemovedOptionModule [ "services" "neo4j" "shell" "enabled" ] "shell.enabled was removed upstream") + (mkRemovedOptionModule [ "services" "neo4j" "udc" "enabled" ] "udc.enabled was removed upstream") ]; ###### interface @@ -568,19 +572,6 @@ in { ''; }; - udc = { - enable = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Enable the Usage Data Collector which Neo4j uses to collect usage - data. Refer to the operations manual section on the - [Usage Data Collector](https://neo4j.com/docs/operations-manual/current/configuration/usage-data-collector/) - for more information. - ''; - }; - }; - }; ###### implementation @@ -612,7 +603,7 @@ in { wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; environment = { - NEO4J_HOME = "${cfg.package}/share/neo4j"; + NEO4J_HOME = "${cfg.directories.home}"; NEO4J_CONF = "${cfg.directories.home}/conf"; }; serviceConfig = { @@ -653,6 +644,6 @@ in { }; meta = { - maintainers = with lib.maintainers; [ patternspandemic ]; + maintainers = with lib.maintainers; [ patternspandemic jonringer ]; }; } diff --git a/nixos/tests/neo4j.nix b/nixos/tests/neo4j.nix index 8329e5630d7af..936d23ee1b709 100644 --- a/nixos/tests/neo4j.nix +++ b/nixos/tests/neo4j.nix @@ -7,6 +7,9 @@ import ./make-test-python.nix { { services.neo4j.enable = true; + # require tls certs to be available + services.neo4j.https.enable = false; + services.neo4j.bolt.enable = false; }; }; |