2 Description=PeerTube daemon
3 After=network.target postgresql.service redis-server.service
7 Environment=NODE_ENV=production
8 Environment=NODE_CONFIG_DIR=/var/www/peertube/config
11 ExecStart=/usr/bin/npm start
12 WorkingDirectory=/var/www/peertube/peertube-latest
15 SyslogIdentifier=peertube
18 ; Some security directives.
19 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
21 ; Sets up a new /dev mount for the process and only adds API pseudo devices
22 ; like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled
23 ; by default because it may not work on devices like the Raspberry Pi.
25 ; Ensures that the service process and all its children can never gain new
26 ; privileges through execve().
28 ; This makes /home, /root, and /run/user inaccessible and empty for processes invoked
29 ; by this unit. Make sure that you do not depend on data inside these folders.
31 ; Drops the sys admin capability from the daemon.
32 CapabilityBoundingSet=~CAP_SYS_ADMIN
35 WantedBy=multi-user.target