Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
N8N_CONFIG_FILES={{ n8n_root_dir }}/etc/n8n.json
N8N_USER_FOLDER={{ n8n_root_dir }}/data
WEBHOOK_TUNNEL_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 }}
N8N_CUSTOM_EXTENSIONS={{ n8n_root_dir }}/.n8n/custom
{% for env in n8n_env_var.keys() | list %}
{{ env }}={{ n8n_env_var[env] }}
{% endfor %}

View File

@@ -0,0 +1 @@
{{ n8n_config | to_nice_json(indent=4) }}

View File

@@ -0,0 +1,24 @@
[Unit]
Description=n8n workflow automation daemon
After=syslog.target network.target mariadb.service
[Service]
Type=simple
User={{ n8n_user }}
Group={{ n8n_user }}
EnvironmentFile={{ n8n_root_dir }}/etc/env
ExecStart={{ n8n_root_dir }}/app/node_modules/n8n/bin/n8n
PrivateTmp=yes
{% if n8n_protect_system %}
ProtectSystem=full
NoNewPrivileges=yes
ProtectHome=yes
{% endif %}
MemoryLimit={{ n8n_mem_limit }}M
Environment=NODE_OPTIONS="--max-old-space-size={{ n8n_mem_limit }}"
Restart=on-failure
StartLimitInterval=0
RestartSec=30
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,3 @@
#!/bin/bash -e
rm -f {{ n8n_root_dir }}/backup/*.sql.zst

View File

@@ -0,0 +1,13 @@
#!/bin/sh
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 }} \
--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