mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #240189 from gmemstr/patch-1
n8n: add WEBHOOK_URL environment variable
This commit is contained in:
commit
8419b512e6
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,15 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
webhookUrl = mkOption {
|
||||
type = types.string;
|
||||
default = "";
|
||||
description = lib.mdDoc ''
|
||||
WEBHOOK_URL for n8n, in case we're running behind a reverse proxy.
|
||||
This cannot be set through configuration and must reside in an environment variable.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -44,6 +53,7 @@ in
|
|||
N8N_USER_FOLDER = "/var/lib/n8n";
|
||||
HOME = "/var/lib/n8n";
|
||||
N8N_CONFIG_FILES = "${configFile}";
|
||||
WEBHOOK_URL = "${webhookUrl}";
|
||||
|
||||
# Don't phone home
|
||||
N8N_DIAGNOSTICS_ENABLED = "false";
|
||||
|
|
Loading…
Reference in a new issue