Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
612 B

[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
Environment=N8N_CONFIG_FILES={{ n8n_root_dir }}/etc/n8n.json
Environment=N8N_USER_FOLDER={{ n8n_root_dir }}/data
Environment=WEBHOOK_TUNNEL_URL={{ n8n_public_url }}
ExecStart={{ n8n_root_dir }}/app/node_modules/n8n/bin/n8n
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=2048M
Restart=on-failure
StartLimitInterval=0
RestartSec=30
[Install]
WantedBy=multi-user.target