mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-25 22:53:23 +02:00
25 lines
569 B
Plaintext
25 lines
569 B
Plaintext
![]() |
[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
|