Update to 2021-05-04 19:00

master
Daniel Berteaud 4 years ago
parent 115eea8194
commit 3e7910b62d
  1. 3
      roles/n8n/defaults/main.yml
  2. 3
      roles/n8n/templates/n8n.service.j2

@ -53,3 +53,6 @@ n8n_protect_system: True
# How long to keep workflow execution logs in the DB before pruning them. # How long to keep workflow execution logs in the DB before pruning them.
# The value is in hours. Default is 90 days # The value is in hours. Default is 90 days
n8n_data_max_age: 2160 n8n_data_max_age: 2160
# Memory limit for the service, in MB
n8n_mem_limit: 2048

@ -14,7 +14,8 @@ ProtectSystem=full
{% endif %} {% endif %}
ProtectHome=yes ProtectHome=yes
NoNewPrivileges=yes NoNewPrivileges=yes
MemoryLimit=2048M MemoryLimit={{ n8n_mem_limit }}M
Environment=NODE_OPTIONS="--max-old-space-size={{ n8n_mem_limit }}"
Restart=on-failure Restart=on-failure
StartLimitInterval=0 StartLimitInterval=0
RestartSec=30 RestartSec=30

Loading…
Cancel
Save