mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 19:25:36 +02:00
Update to 2023-07-25 16:00
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
N8N_CONFIG_FILES={{ n8n_root_dir }}/etc/n8n.json
|
||||
N8N_PORT={{ n8n_port }}
|
||||
N8N_USER_FOLDER={{ n8n_root_dir }}/data
|
||||
WEBHOOK_URL={{ n8n_public_url }}
|
||||
VUE_APP_URL_BASE_API={{ n8n_public_url }}
|
||||
N8N_ENCRYPTION_KEY={{ n8n_secret_key | quote }}
|
||||
EXECUTIONS_DATA_PRUNE=true
|
||||
EXECUTIONS_DATA_MAX_AGE={{ n8n_data_max_age }}
|
||||
@@ -10,7 +8,6 @@ N8N_CUSTOM_EXTENSIONS={{ n8n_root_dir }}/.n8n/custom
|
||||
{{ env }}={{ n8n_env_var[env] }}
|
||||
{% endfor %}
|
||||
N8N_DIAGNOSTICS_ENABLED=false
|
||||
N8N_USER_MANAGEMENT_DISABLED=true
|
||||
N8N_EMAIL_MODE=smtp
|
||||
N8N_SMTP_HOST={{ n8n_smtp_server }}
|
||||
N8N_SMTP_PORT={{ n8n_smtp_port }}
|
||||
@@ -19,7 +16,18 @@ 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') }}
|
||||
N8N_EDITOR_BASE_URL={{ n8n_public_url }}
|
||||
{% 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 }}
|
||||
|
@@ -1 +0,0 @@
|
||||
{{ n8n_config | to_nice_json(indent=4) }}
|
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
rm -f {{ n8n_root_dir }}/backup/*.sql.zst
|
||||
rm -f {{ n8n_root_dir }}/backup/*.sqlc
|
||||
|
@@ -2,12 +2,12 @@
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump \
|
||||
{% if n8n_db_server not in ['localhost','127.0.0.1'] %}
|
||||
--user={{ n8n_db_user | quote }} \
|
||||
--password={{ n8n_db_pass | quote }} \
|
||||
PGPASSWORD='{{ n8n_db_pass }}' /usr/pgsql-15/bin/pg_dump \
|
||||
--format=custom \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ n8n_db_user | quote }} \
|
||||
--host={{ n8n_db_server | quote }} \
|
||||
--port={{ n8n_db_port | quote }} \
|
||||
{% endif %}
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ n8n_db_name | quote }} | zstd -c > {{ n8n_root_dir }}/backup/{{ n8n_db_name }}.sql.zst
|
||||
{{ n8n_db_name | quote }} \
|
||||
-f {{ n8n_root_dir }}/backup/{{ n8n_db_name | quote }}.sqlc
|
||||
|
||||
|
Reference in New Issue
Block a user