summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-01-08 14:43:53 +0300
committerK900 <me@0upti.me>2023-01-08 14:43:53 +0300
commit337d358300af21530f78e2572953b0f309a5f338 (patch)
tree41cfbfaeb5a60ff1284402d7cdee182d2db84d42
parent4f74287d0548586d58c1c65ad9b2580b69033ce1 (diff)
nixos/n8n: disable telemetry by default
Originally intended to just speed up the tests, but probably a good idea in general.
-rw-r--r--nixos/modules/services/misc/n8n.nix7
-rw-r--r--nixos/tests/n8n.nix4
2 files changed, 7 insertions, 4 deletions
diff --git a/nixos/modules/services/misc/n8n.nix b/nixos/modules/services/misc/n8n.nix
index f59df471e1e0..cdfe9dc8482c 100644
--- a/nixos/modules/services/misc/n8n.nix
+++ b/nixos/modules/services/misc/n8n.nix
@@ -9,7 +9,6 @@ let
in
{
options.services.n8n = {
-
enable = mkEnableOption (lib.mdDoc "n8n server");
openFirewall = mkOption {
@@ -22,7 +21,7 @@ in
type = format.type;
default = {};
description = lib.mdDoc ''
- Configuration for n8n, see <https://docs.n8n.io/reference/configuration.html>
+ Configuration for n8n, see <https://docs.n8n.io/hosting/environment-variables/configuration-methods/>
for supported values.
'';
};
@@ -45,6 +44,10 @@ in
N8N_USER_FOLDER = "/var/lib/n8n";
HOME = "/var/lib/n8n";
N8N_CONFIG_FILES = "${configFile}";
+
+ # Don't phone home
+ N8N_DIAGNOSTICS_ENABLED = "false";
+ N8N_VERSION_NOTIFICATIONS_ENABLED = "false";
};
serviceConfig = {
Type = "simple";
diff --git a/nixos/tests/n8n.nix b/nixos/tests/n8n.nix
index c1753a418f67..044240fbce7f 100644
--- a/nixos/tests/n8n.nix
+++ b/nixos/tests/n8n.nix
@@ -19,7 +19,7 @@ in
testScript = ''
machine.wait_for_unit("n8n.service")
- machine.wait_for_open_port(${toString port})
- machine.succeed("curl --fail http://localhost:${toString port}/")
+ machine.wait_for_console_text("Editor is now accessible via")
+ machine.succeed("curl --fail -vvv http://localhost:${toString port}/")
'';
})