diff --git a/roles/n8n/templates/n8n.service.j2 b/roles/n8n/templates/n8n.service.j2 index c3470cb..d86489d 100644 --- a/roles/n8n/templates/n8n.service.j2 +++ b/roles/n8n/templates/n8n.service.j2 @@ -11,9 +11,9 @@ ExecStart={{ n8n_root_dir }}/app/node_modules/n8n/bin/n8n PrivateTmp=yes {% if n8n_protect_system %} ProtectSystem=full -{% endif %} -ProtectHome=yes NoNewPrivileges=yes +ProtectHome=yes +{% endif %} MemoryLimit={{ n8n_mem_limit }}M Environment=NODE_OPTIONS="--max-old-space-size={{ n8n_mem_limit }}" Restart=on-failure