Add support for "_FILE" environment variables

This commit is contained in:
Jan Oberhauser
2019-08-03 14:06:11 +02:00
parent 1fff6e4d54
commit 13c5f99a7e
4 changed files with 75 additions and 7 deletions

View File

@@ -73,6 +73,11 @@ By default n8n uses SQLite to save credentials, past executions and workflows.
n8n however also supports MongoDB and PostgresDB. To use them simply a few
environment variables have to be set.
To avoid passing sensitive information via environment variables "_FILE" may be
appended to the database environment variables (for example "DB_POSTGRESDB_PASSWORD_FILE").
It will then load the data from a file with the given name. That makes it possible to
load data easily from Docker- and Kubernetes-Secrets.
It is important to still persist the data in the `/root/.n8` folder. The reason
is that it contains n8n user data. That is the name of the webhook
(in case) the n8n tunnel gets used and even more important the encryption key