Skip to content

Commit de6f2ba

Browse files
committed
feat: use prexisting env
1 parent bdfcc44 commit de6f2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imageroot/actions/configure-module/20configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if not os.path.exists("n8n-db.env"):
3030
db = agent.read_envfile("database.env")
3131
random_key = secrets.token_hex(16)
3232
n8n_config = {
33-
"N8N_ENCRYPTION_KEY": random_key,
33+
"N8N_ENCRYPTION_KEY": os.getenv("N8N_ENCRYPTION_KEY", random_key),
3434
"DB_TYPE": "postgresdb",
3535
"DB_POSTGRESDB_HOST": "n8n-pgsql",
3636
"DB_POSTGRESDB_PORT": "5432",

0 commit comments

Comments
 (0)