N8N_PORT={{ n8n_port }}
N8N_USER_FOLDER={{ n8n_root_dir }}/data
N8N_ENCRYPTION_KEY={{ n8n_secret_key | quote }}
EXECUTIONS_DATA_PRUNE=true
EXECUTIONS_DATA_MAX_AGE={{ n8n_data_max_age }}
N8N_CUSTOM_EXTENSIONS={{ n8n_root_dir }}/.n8n/custom
{% for env in n8n_env_var.keys() | list %}
{{ env }}={{ n8n_env_var[env] }}
{% endfor %}
N8N_DIAGNOSTICS_ENABLED=false
N8N_EMAIL_MODE=smtp
N8N_SMTP_HOST={{ n8n_smtp_server }}
N8N_SMTP_PORT={{ n8n_smtp_port }}
N8N_SMTP_SSL={{ n8n_smtp_ssl | ternary('true','false') }}
N8N_SMTP_SENDER={{ n8n_smtp_sender }}
# Note : n8n requires N8N_SMTP_USER and N8N_SMTP_PASS, even if no login is required for relay
N8N_SMTP_USER={{ n8n_smtp_user | default('smtp') }}
N8N_SMTP_PASS={{ n8n_smtp_pass | default('smtp') }}
{% if system_tz is defined %}
GENERIC_TIMEZONE={{ system_tz }}
{% endif %}

N8N_HIRING_BANNER_ENABLED=false
VUE_APP_URL_BASE_API={{ n8n_public_url }}
N8N_EDITOR_BASE_URL={{ n8n_public_url }}
WEBHOOK_URL={{ n8n_public_url }}

DB_TYPE=postgresdb
DB_POSTGRESDB_HOST={{ n8n_db_server }}
DB_POSTGRESDB_PORT={{ n8n_db_port }}
DB_POSTGRESDB_DATABASE={{ n8n_db_name }}
DB_POSTGRESDB_USER={{ n8n_db_user }}
DB_POSTGRESDB_PASSWORD={{ n8n_db_pass }}
